rke2-charts/packages/rke2-calico/generated-changes/patch/templates/_helpers.tpl.patch

19 lines
650 B
Diff

--- charts-original/templates/_helpers.tpl
+++ charts/templates/_helpers.tpl
@@ -1,9 +1,12 @@
{{/* 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 -}}
{{/*