vmware-archive / kubecfg

A tool for managing complex enterprise Kubernetes environments as code.
Apache License 2.0
727 stars 62 forks source link

Introduce new diff flag --ignore-status-field #310

Closed kgtw closed 3 years ago

kgtw commented 3 years ago

Introduce new diff flag --ignore-status-field which can be used to ignore the top-level .status field when comparing diffs.

In some cases when performing a diff on resources the only shown change is the .status field. Seeing as this field is only updated on the live object, it doesn't make much sense to show a diff of it.

mkmik commented 3 years ago

would --diff-strategy last-applied work for you?

kgtw commented 3 years ago

Yes, --diff-strategy last-applied works. We were previously using subset.