Skip to content

Commit 6c97c42

Browse files
Allow disabling pod security context
1 parent ddeae43 commit 6c97c42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

charts/sourcebot/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ spec:
2525
{{- toYaml . | nindent 8 }}
2626
{{- end }}
2727
serviceAccountName: {{ include "sourcebot.serviceAccountName" $ }}
28-
{{- with $.Values.sourcebot.podSecurityContext }}
28+
{{- if $.Values.sourcebot.podSecurityContext }}
2929
securityContext:
30-
{{- toYaml . | nindent 8 }}
30+
{{- toYaml $.Values.sourcebot.podSecurityContext | nindent 8 }}
3131
{{- end }}
3232
{{- with $.Values.sourcebot.initContainers }}
3333
initContainers:

0 commit comments

Comments
 (0)