2021-05-17 22:30:18 +00:00
|
|
|
--- charts-original/templates/_helpers.tpl
|
|
|
|
+++ charts/templates/_helpers.tpl
|
2021-07-28 15:39:44 +00:00
|
|
|
@@ -38,4 +38,12 @@
|
|
|
|
{{- if .Values.podLabels }}
|
|
|
|
{{- toYaml .Values.podLabels | nindent 8 }}
|
2021-05-17 22:30:18 +00:00
|
|
|
{{- end }}
|
2021-07-28 15:39:44 +00:00
|
|
|
-{{- end -}}
|
|
|
|
\ No newline at end of file
|
|
|
|
+{{- end -}}
|
2021-05-17 22:30:18 +00:00
|
|
|
+
|
|
|
|
+{{- define "system_default_registry" -}}
|
|
|
|
+{{- if .Values.global.cattle.systemDefaultRegistry -}}
|
|
|
|
+{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}}
|
|
|
|
+{{- else -}}
|
|
|
|
+{{- "" -}}
|
|
|
|
+{{- end -}}
|
|
|
|
+{{- end -}}
|