2021-02-26 01:34:15 +00:00
|
|
|
--- charts-original/templates/_helpers.tpl
|
|
|
|
+++ charts/templates/_helpers.tpl
|
2021-04-05 22:47:34 +00:00
|
|
|
@@ -55,6 +55,7 @@
|
|
|
|
Users can provide an override for an explicit service they want bound via `.Values.controller.publishService.pathOverride`
|
|
|
|
|
2021-02-26 01:34:15 +00:00
|
|
|
*/}}
|
2021-04-05 22:47:34 +00:00
|
|
|
+
|
|
|
|
{{- 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" -}}
|
2021-02-26 01:34:15 +00:00
|
|
|
{{- end -}}
|
2021-04-05 22:47:34 +00:00
|
|
|
-{{- end -}}
|
|
|
|
\ No newline at end of file
|
|
|
|
+{{- end -}}
|
2021-02-26 01:34:15 +00:00
|
|
|
+
|
|
|
|
+{{- define "system_default_registry" -}}
|
|
|
|
+{{- if .Values.global.systemDefaultRegistry -}}
|
|
|
|
+{{- printf "%s/" .Values.global.systemDefaultRegistry -}}
|
|
|
|
+{{- else -}}
|
|
|
|
+{{- "" -}}
|
|
|
|
+{{- end -}}
|
|
|
|
+{{- end -}}
|