mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 00:27:04 +02:00
* fix(common):: Fix Integer style image tags (fixes #128) * feat(common): Reload pod on secret change (#129) * feat(common): Update code-server to v4.11.0 * fix(common): quote command and args strings (#124) * feat(common): Update gluetun to v3.33.0 --------- Signed-off-by: angelnu <git@angelnu.com> Signed-off-by: Maurits van Mastrigt <maurits@funda.nl> Co-authored-by: Angel Nunez Mencias <github@angelnu.com> Co-authored-by: Maurits <75321636+maurits-funda@users.noreply.github.com>
26 lines
972 B
Smarty
26 lines
972 B
Smarty
{{/* Determine the Pod annotations used in the controller */}}
|
|
{{- define "bjw-s.common.lib.metadata.podAnnotations" -}}
|
|
{{- if .Values.podAnnotations -}}
|
|
{{- tpl (toYaml .Values.podAnnotations) . | nindent 0 -}}
|
|
{{- end -}}
|
|
|
|
{{- $configMapsFound := dict -}}
|
|
{{- range $name, $configmap := .Values.configMaps -}}
|
|
{{- if $configmap.enabled -}}
|
|
{{- $_ := set $configMapsFound $name (toYaml $configmap.data | sha256sum) -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- if $configMapsFound -}}
|
|
{{- printf "checksum/config: %v" (toYaml $configMapsFound | sha256sum) | nindent 0 -}}
|
|
{{- end -}}
|
|
|
|
{{- $secretsFound := dict -}}
|
|
{{- range $name, $secret := .Values.secrets -}}
|
|
{{- if $secret.enabled -}}
|
|
{{- $_ := set $secretsFound $name (toYaml $secret.data | sha256sum) -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- if $secretsFound -}}
|
|
{{- printf "checksum/secrets: %v" (toYaml $secretsFound | sha256sum) | nindent 0 -}}
|
|
{{- end -}}
|
|
{{- end -}}
|