Moving extra_args iteration to allow extra_args to work successfully
@@ -203,6 +203,9 @@ spec:
- --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services
- --udp-services-configmap=$(POD_NAMESPACE)/udp-services
- --annotations-prefix=nginx.ingress.kubernetes.io
+ {{ range $k, $v := .ExtraArgs }}
+ - --{{ $k }}{{if ne $v "" }}={{ $v }}{{end}}
+ {{ end }}
securityContext:
capabilities:
drop:
@@ -210,9 +213,6 @@ spec:
add:
- NET_BIND_SERVICE
runAsUser: 33
- {{ range $k, $v := .ExtraArgs }}
- - --{{ $k }}{{if ne $v "" }}={{ $v }}{{end}}
- {{ end }}
env:
- name: POD_NAME
valueFrom:
