From a12607583830133a1b7a838107b0d84464a9724d Mon Sep 17 00:00:00 2001 From: djkhl Date: Fri, 22 Nov 2024 11:31:50 +0100 Subject: [PATCH] add end to if statement --- charts/logprep/templates/deployment.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/logprep/templates/deployment.yaml b/charts/logprep/templates/deployment.yaml index 69740f179..8964f5ea5 100644 --- a/charts/logprep/templates/deployment.yaml +++ b/charts/logprep/templates/deployment.yaml @@ -21,17 +21,17 @@ spec: {{ toYaml .Values.podAnnotations| nindent 8 }} spec: {{- if .Values.podSecurityContext.enabled }} - securityContext: - {{- omit .Values.podSecurityContext "enabled" | toYaml | nindent 8 }} + securityContext: {{- omit .Values.podSecurityContext "enabled" | toYaml | nindent 8 }} + {{ end }} imagePullSecrets: {{- if .Values.secrets.imagePullSecret }} - name: {{ .Values.secrets.imagePullSecret.name }} {{- end }} containers: - name: logprep - {{- if .Values.conatinerSecurityContext.enabled }} - securityContext: - {{- omit .Values.containerSecurityContext "enabled" | toYaml | nindent 12 }} + {{- if .Values.conatinerSecurityContext.enabled }} + securityContext: {{- omit .Values.containerSecurityContext "enabled" | toYaml | nindent 12 }} + {{ end }} resources: {{- toYaml .Values.resources | nindent 12 }} image: {{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}