2021-02-26 01:34:15 +00:00
--- charts-original/templates/controller-daemonset.yaml
+++ charts/templates/controller-daemonset.yaml
2021-04-05 22:47:34 +00:00
@@ -60,7 +60,7 @@
{{- end }}
2021-02-26 01:34:15 +00:00
containers:
2021-04-05 22:47:34 +00:00
- name: {{ template "nginx-ingress.name" . }}-{{ .Values.controller.name }}
- image: "{{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag }}"
+ image: {{ template "system_default_registry" . }}{{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag }}
imagePullPolicy: "{{ .Values.controller.image.pullPolicy }}"
{{- if .Values.controller.lifecycle }}
lifecycle:
@@ -71,22 +71,22 @@
{{- if .Values.defaultBackend.enabled }}
- --default-backend-service={{ .Release.Namespace }}/{{ template "nginx-ingress.defaultBackend.fullname" . }}
{{- else }}
- {{- if (semverCompare "<0.21.0" .Values.controller.image.tag) }}
+ {{- if (semverCompare "<0.21.0" (trimPrefix "nginx-" .Values.controller.image.tag)) }}
- --default-backend-service={{ required ".Values.controller.defaultBackendService is required if .Values.defaultBackend.enabled=false and .Values.controller.image.tag < 0.21.0" .Values.controller.defaultBackendService }}
{{- else if .Values.controller.defaultBackendService }}
- --default-backend-service={{ .Values.controller.defaultBackendService }}
{{- end }}
2021-02-26 01:34:15 +00:00
{{- end }}
2021-04-05 22:47:34 +00:00
- {{- if and (semverCompare ">=0.9.0-beta.1" .Values.controller.image.tag) .Values.controller.publishService.enabled }}
+ {{- if and (semverCompare ">=0.9.0-beta.1" (trimPrefix "nginx-" .Values.controller.image.tag)) .Values.controller.publishService.enabled }}
- --publish-service={{ template "nginx-ingress.controller.publishServicePath" . }}
{{- end }}
- {{- if (semverCompare ">=0.9.0-beta.1" .Values.controller.image.tag) }}
+ {{- if (semverCompare ">=0.9.0-beta.1" (trimPrefix "nginx-" .Values.controller.image.tag)) }}
- --election-id={{ .Values.controller.electionID }}
{{- end }}
- {{- if (semverCompare ">=0.9.0-beta.1" .Values.controller.image.tag) }}
+ {{- if (semverCompare ">=0.9.0-beta.1" (trimPrefix "nginx-" .Values.controller.image.tag)) }}
- --ingress-class={{ .Values.controller.ingressClass }}
{{- end }}
- {{- if (semverCompare ">=0.9.0-beta.1" .Values.controller.image.tag) }}
+ {{- if (semverCompare ">=0.9.0-beta.1" (trimPrefix "nginx-" .Values.controller.image.tag)) }}
- --configmap={{ .Release.Namespace }}/{{ template "nginx-ingress.controller.fullname" . }}
{{- else }}
- --nginx-configmap={{ .Release.Namespace }}/{{ template "nginx-ingress.controller.fullname" . }}
@@ -118,7 +118,7 @@
- --{{ $key }}
{{- end }}
{{- end }}
- {{- if (semverCompare ">=0.16.0" .Values.controller.image.tag) }}
+ {{- if (semverCompare ">=0.16.0" (trimPrefix "nginx-" .Values.controller.image.tag)) }}
securityContext:
capabilities:
drop: