Skip to content

Commit 24442a1

Browse files
authored
Merge pull request #18 from mbaldessari/clusterplatform
Use lookups to determine the clusterPlatform
2 parents fdea240 + 83a5778 commit 24442a1

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
@@ -45,7 +45,7 @@ Default always defined valueFiles to be included when pushing the cluster wide a
4545
- name: global.localClusterName
4646
value: '{{ `{{ (split "." (lookup "config.openshift.io/v1" "Ingress" "" "cluster").spec.domain)._1 }}` }}'
4747
- name: global.clusterPlatform
48-
value: {{ $.Values.global.clusterPlatform }}
48+
value: '{{ `{{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").spec.platformSpec.type }}` }}'
4949
- name: global.multiSourceSupport
5050
value: {{ $.Values.global.multiSourceSupport | quote }}
5151
- name: global.multiSourceRepoUrl

0 commit comments

Comments
 (0)