From 848658a3f8efd2982daafc61056de092d879fbd9 Mon Sep 17 00:00:00 2001 From: Zhiwei Yin Date: Wed, 18 Sep 2024 23:19:28 +0800 Subject: [PATCH] fix the cluster name is digital Signed-off-by: Zhiwei Yin --- .../hub/manifests/rbac/managedcluster-clusterrole.yaml | 2 +- .../hub/manifests/rbac/managedcluster-clusterrolebinding.yaml | 2 +- .../manifests/rbac/managedcluster-registration-rolebinding.yaml | 2 +- .../hub/manifests/rbac/managedcluster-work-rolebinding.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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: