Skip to content

Commit

Permalink
drop unnecessary "if and"
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Jun 18, 2021
1 parent d7644d1 commit d9aa914
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ spec:
readOnly: true
{{- end }}
{{ include "packs-volume-mounts" . | indent 8 }}
{{- if and .Values.st2.packs.volumes.enabled }}
{{- if .Values.st2.packs.volumes.enabled }}
{{- include "pack-configs-volume-mount" . | indent 8}}
{{- end }}
resources:
Expand All @@ -213,7 +213,7 @@ spec:
configMap:
name: {{ .Release.Name }}-st2-config
{{ include "packs-volumes" . | indent 8 }}
{{- if and .Values.st2.packs.volumes.enabled }}
{{- if .Values.st2.packs.volumes.enabled }}
{{- include "pack-configs-volume" . | indent 8}}
{{- end }}
{{- with .Values.st2api.nodeSelector }}
Expand Down Expand Up @@ -1035,7 +1035,7 @@ spec:
readOnly: true
{{- end }}
{{ include "packs-volume-mounts" . | indent 8 }}
{{- if and .Values.st2.packs.volumes.enabled }}
{{- if .Values.st2.packs.volumes.enabled }}
{{- include "pack-configs-volume-mount" . | indent 8}}
{{- end }}
resources:
Expand Down Expand Up @@ -1064,7 +1064,7 @@ spec:
# 0400 file permission
mode: 256
{{ include "packs-volumes" . | indent 8 }}
{{- if and .Values.st2.packs.volumes.enabled }}
{{- if .Values.st2.packs.volumes.enabled }}
{{- include "pack-configs-volume" . | indent 8}}
{{- end }}
{{- with .Values.st2actionrunner.nodeSelector }}
Expand Down

0 comments on commit d9aa914

Please sign in to comment.