# https://helm.sh/docs/howto/charts_tips_and_tricks/#creating-image-pull-secrets {{- define "imagePullSecret" }} {{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .component.registry .component.username .component.password .component.email (printf "%s:%s" .component.username .component.password | b64enc) | b64enc }} {{- end }}