Skip to content

Commit

Permalink
add end to if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
djkhl committed Nov 22, 2024
1 parent 1c2f021 commit a126075
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions charts/logprep/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit a126075

Please sign in to comment.