fix: helm chart security context rendering if empty (#1235)

Signed-off-by: Dominik Augustin <botchk@users.noreply.github.com>
Co-authored-by: Dominik Augustin <botchk@users.noreply.github.com>
Co-authored-by: Aris Boutselis <arisboutselis08@gmail.com>
This commit is contained in:
Dominik Augustin 2024-09-09 08:58:05 +02:00 committed by GitHub
parent 477ef155d3
commit be4ca86af0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,7 @@ spec:
{{- if .Values.deployment.securityContext }} {{- if .Values.deployment.securityContext }}
securityContext: securityContext:
{{- toYaml .Values.deployment.securityContext | nindent 8 }} {{- toYaml .Values.deployment.securityContext | nindent 8 }}
{{ end -}} {{- end }}
serviceAccountName: {{ template "k8sgpt.fullname" . }} serviceAccountName: {{ template "k8sgpt.fullname" . }}
containers: containers:
- name: k8sgpt-container - name: k8sgpt-container