@@ -141,32 +141,36 @@ spec:
141
141
project : {{ .project }}
142
142
143
143
{{- if .sources }}
144
+ {{- $refcount := 0 }}
144
145
sources :
145
- {{- range .sources }}
146
+ {{- range .sources }}
146
147
- repoURL : {{ coalesce .repoURL $.Values.global.repoURL }}
147
148
targetRevision : {{ coalesce .targetRevision $.Values.global.targetRevision }}
148
149
{{- if .chart }}
149
150
chart : {{ .chart }}
150
151
{{- else if .path }}
151
152
path : {{ .path }}
152
153
{{- else }}
153
- ref : gitref
154
154
{{- end }}
155
+ {{- if not (.chart) }}
156
+ ref : gitref{{$refcount}}
157
+ {{- end }}
158
+ {{ $refcount = add1 $refcount }}
155
159
{{- if and (not .kustomize) (.chart) }}
156
160
helm :
157
161
ignoreMissingValueFiles : true
158
162
valueFiles :
159
- - " $gitref/values-global.yaml"
160
- - " $gitref/values-{{ $.Values.clusterGroup.name }}.yaml"
163
+ - " $gitref{{ $refcount }} /values-global.yaml"
164
+ - " $gitref{{ $refcount }} /values-{{ $.Values.clusterGroup.name }}.yaml"
161
165
{{- if $.Values.global.clusterPlatform }}
162
- - " $gitref/values-{{ $.Values.global.clusterPlatform }}.yaml"
166
+ - " $gitref{{ $refcount }} /values-{{ $.Values.global.clusterPlatform }}.yaml"
163
167
{{- if $.Values.global.clusterVersion }}
164
- - " $gitref/values-{{ $.Values.global.clusterPlatform }}-{{ $.Values.global.clusterVersion }}.yaml"
168
+ - " $gitref{{ $refcount }} /values-{{ $.Values.global.clusterPlatform }}-{{ $.Values.global.clusterVersion }}.yaml"
165
169
{{- end }}
166
- - " $gitref/values-{{ $.Values.global.clusterPlatform }}-{{ $.Values.clusterGroup.name }}.yaml"
170
+ - " $gitref{{ $refcount }} /values-{{ $.Values.global.clusterPlatform }}-{{ $.Values.clusterGroup.name }}.yaml"
167
171
{{- end }}
168
172
{{- if $.Values.global.clusterVersion }}
169
- - " $gitref/values-{{ $.Values.global.clusterVersion }}-{{ $.Values.clusterGroup.name }}.yaml"
173
+ - " $gitref{{ $refcount }} /values-{{ $.Values.global.clusterVersion }}-{{ $.Values.clusterGroup.name }}.yaml"
170
174
{{- end }}
171
175
{{- range $valueFile := .extraValueFiles }}
172
176
- {{ $valueFile | quote }}
0 commit comments