Support `diff` between two environments
This change enables the user to diff between two environments that are either local or remote. i.e., `kubecfg diff local:dev local:prod` will diff between the expanded templates for each environment on disk. `kubecfg diff remote:dev remote:prod` will diff between two remote environment clusters. It does this by first expanding the component templates of each environment. Then, the live objects are fetched from each of the clusters and the diff is performed against the live objects. `kubecfg diff local:dev remote:prod` is also an option. This will diff between the expanded templates for 'dev' on disk and the live objects on 'prod's server.
Showing
- cmd/diff.go 231 additions, 24 deletionscmd/diff.go
- cmd/root.go 18 additions, 10 deletionscmd/root.go
- cmd/root_test.go 2 additions, 1 deletioncmd/root_test.go
- pkg/kubecfg/apply.go 2 additions, 2 deletionspkg/kubecfg/apply.go
- pkg/kubecfg/diff.go 173 additions, 43 deletionspkg/kubecfg/diff.go
- utils/meta.go 6 additions, 0 deletionsutils/meta.go
Please register or sign in to comment