rancher-charts/packages/rancher-logging/generated-changes/patch/templates/_helpers.tpl.patch

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 }}