Skip to content

Commit c998fbb

Browse files
committed
fix duplicate envFrom in st2chatops
1 parent fed0e58 commit c998fbb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

templates/deployments.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,14 +1634,13 @@ spec:
16341634
- name: st2chatops
16351635
image: '{{ .Values.st2chatops.image.repository | default "stackstorm" }}/{{ .Values.st2chatops.image.name | default "st2chatops" }}:{{ tpl (.Values.st2chatops.image.tag | default .Values.image.tag) . }}'
16361636
imagePullPolicy: {{ .Values.st2chatops.image.pullPolicy | default .Values.image.pullPolicy }}
1637-
{{- if not (hasKey .Values.st2chatops.env "ST2_API_KEY") }}
16381637
envFrom:
1638+
- configMapRef:
1639+
name: {{ .Release.Name }}-st2-urls
1640+
{{- if not (hasKey .Values.st2chatops.env "ST2_API_KEY") }}
16391641
- secretRef:
16401642
name: {{ .Release.Name }}-st2-auth
16411643
{{- end }}
1642-
envFrom:
1643-
- configMapRef:
1644-
name: {{ .Release.Name }}-st2-urls
16451644
- secretRef:
16461645
name: {{ .Release.Name }}-st2chatops
16471646
ports:

0 commit comments

Comments
 (0)