diff --git a/pkg/registration/hub/manifests/rbac/managedcluster-clusterrole.yaml b/pkg/registration/hub/manifests/rbac/managedcluster-clusterrole.yaml index 04dc5aa71..7d882a264 100644 --- a/pkg/registration/hub/manifests/rbac/managedcluster-clusterrole.yaml +++ b/pkg/registration/hub/manifests/rbac/managedcluster-clusterrole.yaml @@ -3,7 +3,7 @@ kind: ClusterRole metadata: name: open-cluster-management:managedcluster:{{ .ManagedClusterName }} labels: - open-cluster-management.io/cluster-name: {{ .ManagedClusterName }} + open-cluster-management.io/cluster-name: "{{ .ManagedClusterName }}" rules: # Allow agent to rotate its certificate - apiGroups: ["certificates.k8s.io"] diff --git a/pkg/registration/hub/manifests/rbac/managedcluster-clusterrolebinding.yaml b/pkg/registration/hub/manifests/rbac/managedcluster-clusterrolebinding.yaml index b115eb82d..590903e46 100644 --- a/pkg/registration/hub/manifests/rbac/managedcluster-clusterrolebinding.yaml +++ b/pkg/registration/hub/manifests/rbac/managedcluster-clusterrolebinding.yaml @@ -3,7 +3,7 @@ kind: ClusterRoleBinding metadata: name: open-cluster-management:managedcluster:{{ .ManagedClusterName }} labels: - open-cluster-management.io/cluster-name: {{ .ManagedClusterName }} + open-cluster-management.io/cluster-name: "{{ .ManagedClusterName }}" roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole diff --git a/pkg/registration/hub/manifests/rbac/managedcluster-registration-rolebinding.yaml b/pkg/registration/hub/manifests/rbac/managedcluster-registration-rolebinding.yaml index 128416775..ab78b6854 100644 --- a/pkg/registration/hub/manifests/rbac/managedcluster-registration-rolebinding.yaml +++ b/pkg/registration/hub/manifests/rbac/managedcluster-registration-rolebinding.yaml @@ -4,7 +4,7 @@ metadata: name: open-cluster-management:managedcluster:{{ .ManagedClusterName }}:registration namespace: "{{ .ManagedClusterName }}" labels: - open-cluster-management.io/cluster-name: {{ .ManagedClusterName }} + open-cluster-management.io/cluster-name: "{{ .ManagedClusterName }}" roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole diff --git a/pkg/registration/hub/manifests/rbac/managedcluster-work-rolebinding.yaml b/pkg/registration/hub/manifests/rbac/managedcluster-work-rolebinding.yaml index c1b111861..f1ae0c05b 100644 --- a/pkg/registration/hub/manifests/rbac/managedcluster-work-rolebinding.yaml +++ b/pkg/registration/hub/manifests/rbac/managedcluster-work-rolebinding.yaml @@ -4,7 +4,7 @@ metadata: name: open-cluster-management:managedcluster:{{ .ManagedClusterName }}:work namespace: "{{ .ManagedClusterName }}" labels: - open-cluster-management.io/cluster-name: {{ .ManagedClusterName }} + open-cluster-management.io/cluster-name: "{{ .ManagedClusterName }}" finalizers: - cluster.open-cluster-management.io/manifest-work-cleanup roleRef: