ks diff support for objects outside of the "all" category
This PR allows ks diff to consider objects that are not part of the
"all" category, e.g. Ingress, Certificate.
Additionally, the cluster settings of the environment being diffed are
respected and override the current context when deciding where to
connect.
Fixes #803
Fixes #809
Signed-off-by: Oren Shomron <shomron@gmail.com>
Showing
- pkg/cluster/apply.go 2 additions, 15 deletionspkg/cluster/apply.go
- pkg/cluster/apply_test.go 4 additions, 4 deletionspkg/cluster/apply_test.go
- pkg/cluster/client.go 26 additions, 9 deletionspkg/cluster/client.go
- pkg/cluster/client_test.go 2 additions, 2 deletionspkg/cluster/client_test.go
- pkg/cluster/cluster.go 4 additions, 9 deletionspkg/cluster/cluster.go
- pkg/cluster/delete.go 1 addition, 1 deletionpkg/cluster/delete.go
- pkg/cluster/discovery.go 49 additions, 0 deletionspkg/cluster/discovery.go
- pkg/cluster/ksonnet_object.go 2 additions, 2 deletionspkg/cluster/ksonnet_object.go
- pkg/cluster/ksonnet_object_test.go 2 additions, 2 deletionspkg/cluster/ksonnet_object_test.go
- pkg/cluster/object.go 107 additions, 55 deletionspkg/cluster/object.go
- pkg/cluster/object_describer.go 2 additions, 2 deletionspkg/cluster/object_describer.go
- pkg/cluster/object_describer_test.go 1 addition, 1 deletionpkg/cluster/object_describer_test.go
- pkg/cluster/object_test.go 4 additions, 71 deletionspkg/cluster/object_test.go
- pkg/cluster/upsert.go 3 additions, 3 deletionspkg/cluster/upsert.go
- pkg/cluster/upsert_test.go 2 additions, 2 deletionspkg/cluster/upsert_test.go
- pkg/diff/diff.go 10 additions, 3 deletionspkg/diff/diff.go
- pkg/diff/diff_test.go 9 additions, 6 deletionspkg/diff/diff_test.go
Please register or sign in to comment