@@ -47,24 +47,21 @@ metadata:
4747 argocd.argoproj.io/sync-options : SkipDryRunOnMissingResource=true
4848placementRef :
4949 name : hub-argo-ca-{{ .name }}-placement
50- kind : PlacementRule
51- apiGroup : apps .open-cluster-management.io
50+ kind : Placement
51+ apiGroup : cluster .open-cluster-management.io
5252subjects :
5353 - name : hub-argo-ca-{{ .name }}-policy
5454 kind : Policy
5555 apiGroup : policy.open-cluster-management.io
5656---
57- apiVersion : apps .open-cluster-management.io/v1
58- kind : PlacementRule
57+ apiVersion : cluster .open-cluster-management.io/v1beta1
58+ kind : Placement
5959metadata :
6060 name : hub-argo-ca-{{ .name }}-placement
6161 annotations :
6262 argocd.argoproj.io/sync-options : SkipDryRunOnMissingResource=true
6363spec :
64- clusterConditions :
65- - status : ' True'
66- type : ManagedClusterConditionAvailable
67- {{- include "acm.app.clusterSelector" (dict
64+ {{- include "acm.app.clusterSelector" (dict
6865 " clusterSelector" .clusterSelector
6966 " group" $group
7067 ) | nindent 2 }}
@@ -127,24 +124,21 @@ metadata:
127124 argocd.argoproj.io/sync-options : SkipDryRunOnMissingResource=true
128125placementRef :
129126 name : {{ .name }}-acm-hub-ca-policy-placement
130- kind : PlacementRule
131- apiGroup : apps .open-cluster-management.io
127+ kind : Placement
128+ apiGroup : cluster .open-cluster-management.io
132129subjects :
133130 - name : {{ .name }}-acm-hub-ca-policy
134131 kind : Policy
135132 apiGroup : policy.open-cluster-management.io
136133---
137- apiVersion : apps .open-cluster-management.io/v1
138- kind : PlacementRule
134+ apiVersion : cluster .open-cluster-management.io/v1beta1
135+ kind : Placement
139136metadata :
140137 name : {{ .name }}-acm-hub-ca-policy-placement
141138 annotations :
142139 argocd.argoproj.io/sync-options : SkipDryRunOnMissingResource=true
143140spec :
144- clusterConditions :
145- - status : ' True'
146- type : ManagedClusterConditionAvailable
147- {{- include "acm.app.clusterSelector" (dict
141+ {{- include "acm.app.clusterSelector" (dict
148142 " clusterSelector" .clusterSelector
149143 " group" $group
150144 ) | nindent 2 }}
@@ -193,24 +187,21 @@ metadata:
193187 argocd.argoproj.io/sync-options : SkipDryRunOnMissingResource=true
194188placementRef :
195189 name : {{ .name }}-hub-argo-ca-gitops-policy-placement
196- kind : PlacementRule
197- apiGroup : apps .open-cluster-management.io
190+ kind : Placement
191+ apiGroup : cluster .open-cluster-management.io
198192subjects :
199193 - name : {{ .name }}-hub-argo-ca-gitops-policy
200194 kind : Policy
201195 apiGroup : policy.open-cluster-management.io
202196---
203- apiVersion : apps .open-cluster-management.io/v1
204- kind : PlacementRule
197+ apiVersion : cluster .open-cluster-management.io/v1beta1
198+ kind : Placement
205199metadata :
206200 name : {{ .name }}-hub-argo-ca-gitops-policy-placement
207201 annotations :
208202 argocd.argoproj.io/sync-options : SkipDryRunOnMissingResource=true
209203spec :
210- clusterConditions :
211- - status : ' True'
212- type : ManagedClusterConditionAvailable
213- {{- include "acm.app.clusterSelector" (dict
204+ {{- include "acm.app.clusterSelector" (dict
214205 " clusterSelector" .clusterSelector
215206 " group" $group
216207 ) | nindent 2 }}
0 commit comments