openshift / kube-compare

A Kubectl plugin to allow to compare a known valid reference configuration and a set of specific cluster configuration CRs.
Apache License 2.0
12 stars 17 forks source link

(new feature): get k8s manifests from pipeline #127

Open zelig81 opened 3 weeks ago

zelig81 commented 3 weeks ago

Intro to the problem

I have kustomization that uses helmChart, so the usual kubectl diff -k will not apply.

My workaround till now was:

kustomize build --enable-helm --load-restrictor LoadRestrictionsNone . | kubectl diff -f -

The only problem here is that for field is immutable I cannot get the real diff.

Proposal

lack commented 3 days ago

The first part of the proposal is probably pretty straightforward; accepting a list of objects on stdin if specifying -f -

Can you expand more on the 2nd part of your proposal? What happens with the tool now? What would you like to see instead?