mirror of https://git.rancher.io/rke2-charts
15 lines
407 B
Diff
15 lines
407 B
Diff
--- charts-original/templates/_helpers.tpl
|
|
+++ charts/templates/_helpers.tpl
|
|
@@ -132,3 +132,11 @@
|
|
{{- $_ := set (set . "commonCA" $ca) "commonCASecretName" $secretName -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
+
|
|
+{{- define "system_default_registry" -}}
|
|
+{{- if .Values.global.systemDefaultRegistry -}}
|
|
+{{- printf "%s/" .Values.global.systemDefaultRegistry -}}
|
|
+{{- else -}}
|
|
+{{- "" -}}
|
|
+{{- end }}
|
|
+{{- end }}
|