Make delete, diff, show, update, and validate aware of ksonnet apps
The ksonnet.next design doc specifies the core kubecfg verbs (i.e., the ones listed above) to all have the form: kubecfg <verb> [<env-name>|-f <file-or-dir>] That is to say, each of these should be able to take either an environment name, or a `-f` flag with a list of files and directories to apply `verb` on. In the case of the environment, we will apply `verb` to every component in the `components/` directory. This commit implements this behavior for all these verbs.
Showing
- Makefile 4 additions, 2 deletionsMakefile
- cmd/delete.go 7 additions, 1 deletioncmd/delete.go
- cmd/diff.go 24 additions, 3 deletionscmd/diff.go
- cmd/root.go 43 additions, 0 deletionscmd/root.go
- cmd/show.go 8 additions, 2 deletionscmd/show.go
- cmd/show_test.go 1 addition, 1 deletioncmd/show_test.go
- cmd/update.go 38 additions, 5 deletionscmd/update.go
- cmd/validate.go 24 additions, 2 deletionscmd/validate.go
- pkg/kubecfg/common.go 34 additions, 0 deletionspkg/kubecfg/common.go
- pkg/kubecfg/update.go 17 additions, 2 deletionspkg/kubecfg/update.go
Please register or sign in to comment