Closed lmsurpre closed 3 years ago
I tried the checksum approach documented in that tips and tricks page:
checksum/config: {{ include (print $.Template.BasePath "/configMap.yaml") . | sha256sum }}
Unfortunately, because our configMap.yaml just consists of named templates, I still don't think its properly detecting the updates.
I think we'll just go for the brute force rollme: {{ randAlphaNum 5 | quote }}
approach.
Looks like I included the annotation at the wrong level. I put it on the deployment's metadata/annotation, but it was supposed to go on the deployment's spec/template/metadata/annotation. Will fix soon.
OK, I snuck the fix into https://github.com/Alvearie/alvearie-helm/pull/54
I suspect this is the real reason that checksum approach wasn't working for me, so I went back to that option for now.
I made an update to the configMap and then did a helm update. Helm updated the configMap but didn't rollout a new deployment.
Apparently, configMaps are "normally" dynamically loaded, but if we mount them with a subPath then it takes a pod restart to get the new values (see https://github.com/kubernetes/kubernetes/issues/50345 )
For more info on automatically rolling the deployment, see: https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments