mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
- 🛑 BREAKING - Removed support for the openvpn and wireguard VPN types.
- Update container versions
- Added support for adding serviceMonitors to services.
- ConfigMap checksum logic now only looks at ConfigMap data
- Explicitly convert defaultMode to decimal notation in code-server addon.
27 lines
887 B
Smarty
27 lines
887 B
Smarty
{{/* Common annotations shared across objects */}}
|
|
{{- define "common.annotations" -}}
|
|
{{- with .Values.global.annotations }}
|
|
{{- range $k, $v := . }}
|
|
{{- $name := $k }}
|
|
{{- $value := tpl $v $ }}
|
|
{{ $name }}: {{ quote $value }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end -}}
|
|
|
|
{{/* Determine the Pod annotations used in the controller */}}
|
|
{{- define "common.podAnnotations" -}}
|
|
{{- if .Values.podAnnotations -}}
|
|
{{- tpl (toYaml .Values.podAnnotations) . | nindent 0 -}}
|
|
{{- end -}}
|
|
|
|
{{- $configMapsFound := dict -}}
|
|
{{- range $name, $configmap := .Values.configmap -}}
|
|
{{- if $configmap.enabled -}}
|
|
{{- $_ := set $configMapsFound $name (toYaml $configmap.data | sha256sum) -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- if $configMapsFound -}}
|
|
{{- printf "checksum/config: %v" (toYaml $configMapsFound | sha256sum) | nindent 0 -}}
|
|
{{- end -}}
|
|
{{- end -}}
|