-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect ConfigMap change from kustomize smartly #81
Comments
that's an interesting idea. we do something similar for kapp's versioned resources in terms of diff presentation. let me think a bit more about how does one best detect/indicate this relationship. do you think it would be reasonable to require an annotation on a configmap for this behaviour (and to better detect which resources are "related")? |
I was expecting similar behavior to So yes, implement it with annotations sounds good to me, although I don't have any idea about how to do it yet. |
Hi, kustomize by default applies a "name suffix hash" to all ConfigMaps and Secrets it generates via Unfortunately custom-written-YAML CMs/Secrets will not get a name-suffix-hash (and i found no way to add it), but that should be a very edge-y use-case. |
I stumbled upon this recently and the way I "fixed" it was by delegating the
Example output:
|
Kustomize will generate a ConfigMap suffix automatically, which makes the change like delete and create.
Is it possible to smartly detect it as a resource change to highlight the diff?
The text was updated successfully, but these errors were encountered: