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

17 lines
426 B
Diff

--- charts-original/templates/_helpers.tpl
+++ charts/templates/_helpers.tpl
@@ -45,4 +45,11 @@
{{- if $value -}}
{{- printf "%s" $value -}}
{{- end -}}
-{{- end -}}
\ No newline at end of file
+{{- end -}}
+{{- define "system_default_registry" -}}
+{{- if .Values.global.cattle.systemDefaultRegistry -}}
+{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}}
+{{- else -}}
+{{- "" -}}
+{{- end -}}
+{{- end -}}