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
8 stars 8 forks source link

Allow saving of diffs #32

Open nocturnalastro opened 2 weeks ago

nocturnalastro commented 2 weeks ago

Allow a record of diffs to be saved so that in the future they can be given back to the tool as accepted diffs which can be ignored.

This will allow people to accept some deviations from the reference without having to modify the reference themselves.

nocturnalastro commented 2 weeks ago

I think apimachinery's CreateTwoWayMergePatch could be used here the output of this could be saved and passed back into StrategicMergePatch with the template output to provide diffs "accepted" by the user.

pixelsoccupied commented 2 weeks ago

/kind feature