mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-08-02 08:06:18 +00:00
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> Signed-off-by: AlexsJones <alexsimonjones@gmail.com>
This commit is contained in:
parent
e6e1bbaf3f
commit
a0b2884f13
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user