From 5774b196cb9174e25e2516bcbb7106a5f7e0c849 Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Thu, 12 Feb 2026 10:06:13 +0100 Subject: [PATCH] Make sure we also add /values-{clustername}.yaml --- templates/_helpers.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index 0094d90..64b425c 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -10,6 +10,7 @@ Default always defined valueFiles to be included when pushing the cluster wide a # We cannot use $.Values.global.clusterVersion because that gets resolved to the # hub's cluster version, whereas we want to include the spoke cluster version - '/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' +- '/values-{{ `{{ (split "." (lookup "config.openshift.io/v1" "Ingress" "" "cluster").spec.domain)._1 }}` }}.yaml' {{- end }} {{- /*acm.app.policies.valuefiles */}} {{- define "acm.app.policies.multisourcevaluefiles" -}} @@ -21,6 +22,7 @@ Default always defined valueFiles to be included when pushing the cluster wide a # We cannot use $.Values.global.clusterVersion because that gets resolved to the # hub's cluster version, whereas we want to include the spoke cluster version - '$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' +- '$patternref/values-{{ `{{ (split "." (lookup "config.openshift.io/v1" "Ingress" "" "cluster").spec.domain)._1 }}` }}.yaml' {{- end }} {{- /*acm.app.policies.multisourcevaluefiles */}} {{- define "acm.app.policies.helmparameters" -}}