File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
charts/team-ns/templates/argocd
tests/fixtures/env/teams/demo/workloads Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 11{{- $v := .Values }}
2-
32{{- range $v.workloads }}
3+ {{- $workload := . }}
4+ {{- $includeManagedValuesFile := false }}
5+ {{- if and $workload.imageUpdateStrategy $workload.imageUpdateStrategy.type }}
6+ {{- $includeManagedValuesFile = not (eq $workload.imageUpdateStrategy.type "disabled") }}
7+ {{- end }}
48---
59apiVersion : argoproj.io/v1alpha1
610kind : Application
3236 {{- end }}
3337 {{- end }}
3438 valueFiles :
35- - $values/env/teams/{{ $v.teamId }}/workloadValues/{{ .name }}.yaml
36- - $values/env/teams/{{ $v.teamId }}/workloadValues/{{ .name }}.managed.yaml
39+ - $values/env/teams/{{ $v.teamId }}/workloadValues/{{ $workload.name }}.yaml
40+ {{- if $includeManagedValuesFile }}
41+ - $values/env/teams/{{ $v.teamId }}/workloadValues/{{ $workload.name }}.managed.yaml
42+ {{- end }}
3743 - repoURL : {{ $v.gitOps.workloadValuesRepoUrl | quote }}
3844 targetRevision : ' {{ .revision }}'
3945 ref : values
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ metadata:
44 labels :
55 apl.io/teamId : demo
66spec :
7- imageUpdateStrategy :
8- type : disabled
97 path : ./
108 revision : main
119 url : https://myrepo.local/mychart.git
You can’t perform that action at this time.
0 commit comments