Skip to content

Commit

Permalink
Apply securityContext only if it is explicitly enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mic4ael authored Nov 15, 2023
1 parent 1fb99c3 commit faa7daa
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ spec:
spec:
serviceAccountName: {{ include "confluence.serviceAccountName" . }}
terminationGracePeriodSeconds: {{ .Values.synchrony.shutdown.terminationGracePeriodSeconds }}
{{- if .Values.synchrony.securityContextEnabled }}
{{- with .Values.synchrony.securityContext }}
securityContext:
{{ toYaml . | nindent 8 }}
{{- end }}
{{- end }}
hostAliases:
{{- include "confluence.additionalHosts" . | nindent 8 }}
{{- if .Values.synchrony.additionalCertificates.secretName }}
Expand Down

0 comments on commit faa7daa

Please sign in to comment.