helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

Adds tpl function to podAnnotations to enable checksumming

Open Lyian opened this issue 1 year ago • 1 comments

I use a user configuration file which gets mounted into the sftpgo pod via volume and volumeMounts. Since adding or removing users changes the config map I would like to let the pods restart such that the new config map is loaded. This can be achieved via a checksum function in the podAnnotations section in deplyments.yaml and adding the calculation within values.yaml.

sftpgo: podAnnotations: configmap/checksum: '{{ include (print $.Template.BasePath "/user-config.yaml") . | sha256sum }}' This is only possible if the podAnnotations uses the "tpl" function.

Lyian avatar Nov 09 '23 11:11 Lyian

Hi @sagikazarmark, do you have any suggestions?

Lyian avatar Nov 20 '23 10:11 Lyian