docker-archive / deploykit

A toolkit for creating and managing declarative, self-healing infrastructure.
Apache License 2.0
2.25k stars 264 forks source link

add -o option to show fsm states #891

Closed chungers closed 6 years ago

chungers commented 6 years ago

Simple -o and -v options to show the states of finite state machines in a controller's collection. If -v is specified with a template (e.g. -v "{{.instance.Tags.Name}}", then the DATA column will be rendered using the view template instead of the default, which extracts the ID of the instance.

For example:

$ infrakit local resource/myproject describe -o
KEY         STATE            DATA
subnet2     READY            subnet-131fa46e
vpc         READY            vpc-cb1a99a0
igw         READY            igw-8487edec
rtb         READY            rtb-6fc4f304
sg1         READY            sg-11dd647c
subnet1     READY            subnet-b387c5d8

Signed-off-by: David Chung david.chung@docker.com

codecov[bot] commented 6 years ago

Codecov Report

Merging #891 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #891   +/-   ##
=======================================
  Coverage   48.52%   48.52%           
=======================================
  Files          84       84           
  Lines        7812     7812           
=======================================
  Hits         3791     3791           
  Misses       3714     3714           
  Partials      307      307

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1fc93c9...f3af3d0. Read the comment docs.