I like configMapGenerator with suffix hashes because it forces redeployment of pod that are consuming particular config. But the diff output after changing config is just delete and create, which is less than ideal. Is there a way to get more intelligent diff config maps produces by configMapGenerator with suffix hashes?
Edit:
For example if I have kustomization.yaml:
generatorOptions:
disableNameSuffixHash: false
configMapGenerator:
- name: nginx-conf
files:
- nginx.conf=config/nginx.conf
Lets assume that for first time
kubectl apply -k
generatesnginx-conf-aaaa
config map.Edit
config/nginx.conf
.Lets assume that
kubectl apply -k
will generatenginx-config-bbbb
.
Is there a way to diff nginx-config-aaaa
and nginx-config-bbbb
before applying changes?