mirror of https://git.rancher.io/charts
15 lines
458 B
Diff
15 lines
458 B
Diff
|
--- 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 -}}
|