Skip to content

Commit 9f5466c

Browse files
committed
Make dev-values.yaml conditional
1 parent bac9e84 commit 9f5466c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

charts/apps/templates/backend-app.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ spec:
1515
helm:
1616
valueFiles:
1717
- values.yaml
18+
{{- with .Values.frontend.targetRevision }}
19+
{{- if eq "dev" . }}
1820
- dev-values.yaml
21+
{{- end }}
22+
{{- end }}
1923
destination:
2024
name: {{ .Values.destination.name }}
2125
server: {{ .Values.destination.server }}

charts/apps/templates/frontend-app.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ spec:
1515
helm:
1616
valueFiles:
1717
- values.yaml
18+
{{- with .Values.frontend.targetRevision }}
19+
{{- if eq "dev" . }}
1820
- dev-values.yaml
21+
{{- end }}
22+
{{- end }}
1923
destination:
2024
name: {{ .Values.destination.name }}
2125
server: {{ .Values.destination.server }}

0 commit comments

Comments
 (0)