feat: started to add a flag to disable security context

This commit is contained in:
Richard Case
2020-04-01 16:57:30 +01:00
parent 7c00e5bbd8
commit f199923a3c
2 changed files with 11 additions and 2 deletions
+3 -2
View File
@@ -50,9 +50,10 @@ spec:
{{- end }}
containers:
- name: flagger
{{- if .Values.securityContext.enabled }}
securityContext:
readOnlyRootFilesystem: true
runAsUser: 10001
{{ toYaml .Values.securityContext.context | indent 12 }}
{{- end }}
volumeMounts:
{{- if .Values.istio.kubeconfig.secretName }}
- name: kubeconfig
+8
View File
@@ -30,6 +30,14 @@ selectorLabels: ""
configTracking:
enabled: true
# when enabled, it will add a security context for the flagger pod. You may
# need to disable this if you are running flagger on OpenShift
securityContext:
enabled: true
context:
readOnlyRootFilesystem: true
runAsUser: 10001
# when specified, flagger will publish events to the provided webhook
eventWebhook: ""