mirror of https://git.rancher.io/charts
25 lines
678 B
Diff
25 lines
678 B
Diff
--- charts-original/templates/_helpers.tpl
|
|
+++ charts/templates/_helpers.tpl
|
|
@@ -56,3 +56,21 @@
|
|
{{- end }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
{{- end -}}
|
|
+
|
|
+{{- define "system_default_registry" -}}
|
|
+{{- if .Values.global.cattle.systemDefaultRegistry -}}
|
|
+{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}}
|
|
+{{- else -}}
|
|
+{{- "" -}}
|
|
+{{- end -}}
|
|
+{{- end -}}
|
|
+
|
|
+{{- define "windowsEnabled" }}
|
|
+ {{- if not (kindIs "invalid" .Values.global.cattle.windows) }}
|
|
+ {{- if not (kindIs "invalid" .Values.global.cattle.windows.enabled) }}
|
|
+ {{- if .Values.global.cattle.windows.enabled }}
|
|
+true
|
|
+ {{- end }}
|
|
+ {{- end }}
|
|
+ {{- end }}
|
|
+{{- end }}
|