Skip to content

Commit 9d4437e

Browse files
committed
We don't need managedClusterGroups to be global now we have a single chart consuming it
1 parent fe78532 commit 9d4437e

9 files changed

+10
-10
lines changed

Changes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Changes
22

33
## October 3, 2022
4-
* Support both .Values.global.managedClusterGroups and the old .Values.clusterGroup.managedClusterGroups
4+
* Support both .Values.managedClusterGroups and the old .Values.clusterGroup.managedClusterGroups
55
* Restore the ability to install a non-default site: `make TARGET_SITE=mysite install`
66
* Revised tests (new output and filenames, requires adding new result files to git)
77
* ACM 2.6 required for ACM-based managed sites

managedClusters/templates/acm/multiclusterhub.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- $haveACM := false }}
2-
{{- range coalesce .Values.global.managedClusterGroups .Values.clusterGroup.managedClusterGroups }}
2+
{{- range coalesce .Values.managedClusterGroups .Values.clusterGroup.managedClusterGroups }}
33
{{- if not .hostedArgoSites }}
44
{{- $haveACM = true }}
55
{{- end }}

managedClusters/templates/acm/policies/application-policies.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# TODO: Also create a GitOpsCluster.apps.open-cluster-management.io
2-
{{- range coalesce .Values.global.managedClusterGroups .Values.clusterGroup.managedClusterGroups }}
2+
{{- range coalesce .Values.managedClusterGroups .Values.clusterGroup.managedClusterGroups }}
33
{{- $group := . }}
44
{{- if not .hostedArgoSites }}
55
apiVersion: policy.open-cluster-management.io/v1

managedClusters/templates/acm/policies/ocp-gitops-policy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- $haveACM := false }}
2-
{{- range coalesce .Values.global.managedClusterGroups .Values.clusterGroup.managedClusterGroups }}
2+
{{- range coalesce .Values.managedClusterGroups .Values.clusterGroup.managedClusterGroups }}
33
{{- if not .hostedArgoSites }}
44
{{- $haveACM = true }}
55
{{- end }}

managedClusters/templates/acm/provision/clusterpool.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- range coalesce .Values.global.managedClusterGroups .Values.clusterGroup.managedClusterGroups }}
1+
{{- range coalesce .Values.managedClusterGroups .Values.clusterGroup.managedClusterGroups }}
22
{{- $group := . }}
33
{{- if .clusterPools }}{{- /* We only create ManagedClusterSets if there are clusterPools defined */}}
44
apiVersion: cluster.open-cluster-management.io/v1beta1
@@ -84,4 +84,4 @@ spec:
8484
{{- end }}{{- /* range .range clusters */}}
8585
{{- end }}{{- /* range .clusterPools */}}
8686
{{- end }}{{- /* if .clusterPools) */}}
87-
{{- end }}{{- /* range coalesce .Values.global.managedClusterGroups .Values.clusterGroup.managedClusterGroups */}}
87+
{{- end }}{{- /* range coalesce .Values.managedClusterGroups .Values.clusterGroup.managedClusterGroups */}}

managedClusters/templates/acm/provision/secrets-aws.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- range coalesce .Values.global.managedClusterGroups .Values.clusterGroup.managedClusterGroups }}
1+
{{- range coalesce .Values.managedClusterGroups .Values.clusterGroup.managedClusterGroups }}
22
{{- $group := . }}
33
{{- range .clusterPools }}
44
{{- $poolName := print .name "-" $group.name }}

managedClusters/templates/acm/provision/secrets-azure.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- range coalesce .Values.global.managedClusterGroups .Values.clusterGroup.managedClusterGroups }}
1+
{{- range coalesce .Values.managedClusterGroups .Values.clusterGroup.managedClusterGroups }}
22
{{- $group := . }}
33
{{- range .clusterPools }}
44
{{- $poolName := print .name "-" $group.name }}

managedClusters/templates/acm/provision/secrets-common.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- range coalesce .Values.global.managedClusterGroups .Values.clusterGroup.managedClusterGroups }}
1+
{{- range coalesce .Values.managedClusterGroups .Values.clusterGroup.managedClusterGroups }}
22
{{- $group := . }}
33
{{- range .clusterPools }}
44
{{- $poolName := print .name "-" $group.name }}

managedClusters/templates/argo/hosted-sites.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- range coalesce .Values.global.managedClusterGroups .Values.clusterGroup.managedClusterGroups }}
1+
{{- range coalesce .Values.managedClusterGroups .Values.clusterGroup.managedClusterGroups }}
22
{{- $group := . }}
33
{{- if .hostedArgoSites }}
44
apiVersion: argoproj.io/v1alpha1

0 commit comments

Comments
 (0)