using const systemNodeRoleName instead of string system:node

This commit is contained in:
SataQiu 2023-02-13 14:22:28 +08:00
parent cfa295f569
commit b9e5f5ad2f

View File

@ -370,7 +370,7 @@ func ClusterRoles() []rbacv1.ClusterRole {
}, },
{ {
// a role for nodes to use to have the access they need for running pods // 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(), Rules: NodeRules(),
}, },
{ {