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

15 lines
458 B
Diff
Raw Normal View History

2022-04-13 18:27:53 +00:00
--- charts-original/templates/_helpers.tpl
+++ charts/templates/_helpers.tpl
@@ -30,3 +30,11 @@
{{- define "neuvector.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
+
+{{- define "system_default_registry" -}}
+{{- if .Values.global.cattle.systemDefaultRegistry -}}
+{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}}
+{{- else -}}
+{{- "" -}}
+{{- end -}}
+{{- end -}}