mirror of https://git.rancher.io/rke2-charts
17 lines
642 B
Diff
17 lines
642 B
Diff
|
--- charts-original/templates/_helpers.tpl
|
||
|
+++ charts/templates/_helpers.tpl
|
||
|
@@ -1,7 +1,10 @@
|
||
|
{{/* generate the image name for a component*/}}
|
||
|
{{- define "tigera-operator.image" -}}
|
||
|
-{{- if .registry -}}
|
||
|
- {{- .registry | trimSuffix "/" -}}/
|
||
|
+{{- if .Values.global.systemDefaultRegistry -}}
|
||
|
+{{- $_ := set .Values.tigeraOperator "registry" .Values.global.systemDefaultRegistry -}}
|
||
|
{{- end -}}
|
||
|
-{{- .image -}}:{{- .version -}}
|
||
|
+{{- if .Values.tigeraOperator.registry -}}
|
||
|
+ {{- .Values.tigeraOperator.registry | trimSuffix "/" -}}/
|
||
|
+{{- end -}}
|
||
|
+{{- .Values.tigeraOperator.image -}}:{{- .Values.tigeraOperator.version -}}
|
||
|
{{- end -}}
|