rke2-charts/packages/cilium/generated-changes/patch/templates/_helpers.tpl.patch

15 lines
385 B
Diff

--- charts-original/templates/_helpers.tpl
+++ charts/templates/_helpers.tpl
@@ -126,3 +126,11 @@
tls.crt: {{ $cert.Cert | b64enc }}
tls.key: {{ $cert.Key | b64enc }}
{{- end }}
+
+{{- define "system_default_registry" -}}
+{{- if .Values.global.systemDefaultRegistry -}}
+{{- printf "%s/" .Values.global.systemDefaultRegistry -}}
+{{- else -}}
+{{- "" -}}
+{{- end }}
+{{- end }}