You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deploying the controller to a custom namespace, users have to
overwrite the namespace attribute as well as the hardcoded namespace
values in a number of args for the Deployment and the admission
controller Jobs.
Instead, this commit, uses the namespace name from the DownwardAPI,
and allows users to simply change the namespace attribute without
having to worry about the container args.
- --host={{ include "ingress-nginx.controller.fullname" . }}-admission,{{ include "ingress-nginx.controller.fullname" . }}-admission.{{ .Release.Namespace }}.svc
42
-
- --namespace={{ .Release.Namespace }}
41
+
- --host={{ include "ingress-nginx.controller.fullname" . }}-admission,{{ include "ingress-nginx.controller.fullname" . }}-admission.$(POD_NAMESPACE).svc
42
+
- --namespace=$(POD_NAMESPACE)
43
43
- --secret-name={{ include "ingress-nginx.fullname" . }}-admission
44
+
env:
45
+
- name: POD_NAMESPACE
46
+
valueFrom:
47
+
fieldRef:
48
+
fieldPath: metadata.namespace
44
49
restartPolicy: OnFailure
45
50
serviceAccountName: {{ include "ingress-nginx.fullname" . }}-admission
46
51
{{- if .Values.controller.admissionWebhooks.patch.nodeSelector }}
0 commit comments