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

26 lines
838 B
Diff
Raw Normal View History

--- charts-original/templates/_helpers.tpl
+++ charts/templates/_helpers.tpl
@@ -55,6 +55,7 @@
Users can provide an override for an explicit service they want bound via `.Values.controller.publishService.pathOverride`
*/}}
+
{{- define "nginx-ingress.controller.publishServicePath" -}}
{{- $defServiceName := printf "%s/%s" .Release.Namespace (include "nginx-ingress.controller.fullname" .) -}}
{{- $servicePath := default $defServiceName .Values.controller.publishService.pathOverride }}
@@ -122,4 +123,12 @@
{{- else -}}
{{- print "extensions/v1beta1" -}}
{{- end -}}
-{{- end -}}
\ No newline at end of file
+{{- end -}}
+
+{{- define "system_default_registry" -}}
+{{- if .Values.global.systemDefaultRegistry -}}
+{{- printf "%s/" .Values.global.systemDefaultRegistry -}}
+{{- else -}}
+{{- "" -}}
+{{- end -}}
+{{- end -}}