File tree Expand file tree Collapse file tree 3 files changed +3
-27
lines changed Expand file tree Collapse file tree 3 files changed +3
-27
lines changed Original file line number Diff line number Diff line change @@ -191,21 +191,9 @@ spec:
191191{{ toYaml .Values.controller.extraVolumes | indent 8 }}
192192 {{- end }}
193193 {{- end }}
194- {{- if or .Values.controller.unprivileged .Values.controller.initContainers }}
194+ {{- with .Values.controller.initContainers }}
195195 initContainers :
196- {{- if .Values.controller.unprivileged }}
197- - name : sysctl
198- image : busybox:musl
199- command :
200- - /bin/sh
201- - -c
202- - sysctl -w net.ipv4.ip_unprivileged_port_start=0
203- securityContext :
204- privileged : true
205- {{- end }}
206- {{- with.Values.controller.initContainers }}
207196 {{- toYaml . | nindent 8 }}
208- {{- end }}
209197 {{- end }}
210198 {{- with .Values.controller.nodeSelector }}
211199 nodeSelector :
Original file line number Diff line number Diff line change @@ -186,21 +186,9 @@ spec:
186186{{ toYaml .Values.controller.extraVolumes | indent 8 }}
187187 {{- end }}
188188 {{- end }}
189- {{- if or .Values.controller.unprivileged .Values.controller.initContainers }}
189+ {{- with .Values.controller.initContainers }}
190190 initContainers :
191- {{- if .Values.controller.unprivileged }}
192- - name : sysctl
193- image : busybox:musl
194- command :
195- - /bin/sh
196- - -c
197- - sysctl -w net.ipv4.ip_unprivileged_port_start=0
198- securityContext :
199- privileged : true
200- {{- end }}
201- {{- with.Values.controller.initContainers }}
202191 {{- toYaml . | nindent 8 }}
203- {{- end }}
204192 {{- end }}
205193 {{- with .Values.controller.nodeSelector }}
206194 nodeSelector :
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ controller:
6161
6262 # # Running container without root privileges
6363 # # ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
64- unprivileged : false
64+ unprivileged : true
6565
6666 # # Init Containers
6767 # # ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
You can’t perform that action at this time.
0 commit comments