From b9e5f5ad2fa1fc49b1a3d187f7bbfe208360d720 Mon Sep 17 00:00:00 2001 From: SataQiu Date: Mon, 13 Feb 2023 14:22:28 +0800 Subject: [PATCH] using const systemNodeRoleName instead of string system:node --- plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go b/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go index 26b34ebaf15..b804eddd4d6 100644 --- a/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go +++ b/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go @@ -370,7 +370,7 @@ func ClusterRoles() []rbacv1.ClusterRole { }, { // a role for nodes to use to have the access they need for running pods - ObjectMeta: metav1.ObjectMeta{Name: "system:node"}, + ObjectMeta: metav1.ObjectMeta{Name: systemNodeRoleName}, Rules: NodeRules(), }, {