From be4ca86af07e832eb7832f7e5f83df8676bafd29 Mon Sep 17 00:00:00 2001 From: Dominik Augustin <9437246+botchk@users.noreply.github.com> Date: Mon, 9 Sep 2024 08:58:05 +0200 Subject: [PATCH] fix: helm chart security context rendering if empty (#1235) Signed-off-by: Dominik Augustin Co-authored-by: Dominik Augustin Co-authored-by: Aris Boutselis --- charts/k8sgpt/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/k8sgpt/templates/deployment.yaml b/charts/k8sgpt/templates/deployment.yaml index 39219f7b90..fcba48e7a1 100644 --- a/charts/k8sgpt/templates/deployment.yaml +++ b/charts/k8sgpt/templates/deployment.yaml @@ -24,7 +24,7 @@ spec: {{- if .Values.deployment.securityContext }} securityContext: {{- toYaml .Values.deployment.securityContext | nindent 8 }} - {{ end -}} + {{- end }} serviceAccountName: {{ template "k8sgpt.fullname" . }} containers: - name: k8sgpt-container