Skip to content

Commit a35d9c4

Browse files
committed
Fix clustergroup spoke values files
We also need to put it in the multisource values function, which we mistakenly omitted in the previous commit.
1 parent dc31879 commit a35d9c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Default always defined valueFiles to be included when pushing the cluster wide a
2020
- '$patternref/values-{{ `{{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").spec.platformSpec.type }}` }}-{{ .name }}.yaml'
2121
# We cannot use $.Values.global.clusterVersion because that gets resolved to the
2222
# hub's cluster version, whereas we want to include the spoke cluster version
23-
- '$patternref/values-{{ `{{ printf "%d.%d" ((semver (index (lookup "config.openshift.io/v1" "ClusterVersion" "" "version").status.history 0).version).Major) ((semver (index (lookup "config.openshift.io/v1" "ClusterVersion" "" "version").status.history 0).version).Minor) }}` }}.yaml'
23+
- '$patternref/values-{{ `{{ printf "%d.%d" ((semver (index (lookup "config.openshift.io/v1" "ClusterVersion" "" "version").status.history 0).version).Major) ((semver (index (lookup "config.openshift.io/v1" "ClusterVersion" "" "version").status.history 0).version).Minor) }}` }}-{{ .name }}.yaml'
2424
{{- end }} {{- /*acm.app.policies.multisourcevaluefiles */}}
2525

2626
{{- define "acm.app.policies.helmparameters" -}}

0 commit comments

Comments
 (0)