@@ -609,14 +609,14 @@ spec:
609609 helm :
610610 ignoreMissingValueFiles : true
611611 valueFiles :
612- - " /values-global.yaml"
613- - " /values-acm-edge.yaml"
614- - ' /values-{{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").spec.platformSpec.type }}.yaml'
615- - ' /values-{{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").spec.platformSpec.type }}-{{ 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'
616- - ' /values-{{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").spec.platformSpec.type }}-acm-edge.yaml'
617- # We cannot use $.Values.global.clusterVersion because that gets resolved to the
618- # hub's cluster version, whereas we want to include the spoke cluster version
619- - ' /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'
612+ - " /values-global.yaml"
613+ - " /values-acm-edge.yaml"
614+ - ' /values-{{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").spec.platformSpec.type }}.yaml'
615+ - ' /values-{{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").spec.platformSpec.type }}-{{ 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'
616+ - ' /values-{{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").spec.platformSpec.type }}-acm-edge.yaml'
617+ # We cannot use $.Values.global.clusterVersion because that gets resolved to the
618+ # hub's cluster version, whereas we want to include the spoke cluster version
619+ - ' /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'
620620 parameters :
621621 - name : global.repoURL
622622 value : https://github.com/pattern-clone/mypattern
@@ -630,10 +630,8 @@ spec:
630630 value : apps.hub.example.com
631631 - name : global.localClusterDomain
632632 value : ' {{ (lookup "config.openshift.io/v1" "Ingress" "" "cluster").spec.domain }}'
633- # Requires ACM 2.6 or higher
634633 - name : global.clusterDomain
635634 value : ' {{ (lookup "config.openshift.io/v1" "Ingress" "" "cluster").spec.domain | replace "apps." "" }}'
636- # Requires ACM 2.6 or higher (I could not come up with something less terrible to get maj.min)
637635 - name : global.clusterVersion
638636 value : ' {{ 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) }}'
639637 - name : global.localClusterName
@@ -707,14 +705,14 @@ spec:
707705 helm :
708706 ignoreMissingValueFiles : true
709707 valueFiles :
710- - " /values-global.yaml"
711- - " /values-acm-provision-edge.yaml"
712- - ' /values-{{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").spec.platformSpec.type }}.yaml'
713- - ' /values-{{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").spec.platformSpec.type }}-{{ 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'
714- - ' /values-{{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").spec.platformSpec.type }}-acm-provision-edge.yaml'
715- # We cannot use $.Values.global.clusterVersion because that gets resolved to the
716- # hub's cluster version, whereas we want to include the spoke cluster version
717- - ' /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'
708+ - " /values-global.yaml"
709+ - " /values-acm-provision-edge.yaml"
710+ - ' /values-{{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").spec.platformSpec.type }}.yaml'
711+ - ' /values-{{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").spec.platformSpec.type }}-{{ 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'
712+ - ' /values-{{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").spec.platformSpec.type }}-acm-provision-edge.yaml'
713+ # We cannot use $.Values.global.clusterVersion because that gets resolved to the
714+ # hub's cluster version, whereas we want to include the spoke cluster version
715+ - ' /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'
718716 parameters :
719717 - name : global.repoURL
720718 value : https://github.com/pattern-clone/mypattern
@@ -728,10 +726,8 @@ spec:
728726 value : apps.hub.example.com
729727 - name : global.localClusterDomain
730728 value : ' {{ (lookup "config.openshift.io/v1" "Ingress" "" "cluster").spec.domain }}'
731- # Requires ACM 2.6 or higher
732729 - name : global.clusterDomain
733730 value : ' {{ (lookup "config.openshift.io/v1" "Ingress" "" "cluster").spec.domain | replace "apps." "" }}'
734- # Requires ACM 2.6 or higher (I could not come up with something less terrible to get maj.min)
735731 - name : global.clusterVersion
736732 value : ' {{ 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) }}'
737733 - name : global.localClusterName
0 commit comments