mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-04-28 11:25:03 +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>
This commit is contained in:
parent
477ef155d3
commit
be4ca86af0
@ -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