Merge pull request #115713 from SataQiu/clean-20230213

cleanup: using const systemNodeRoleName instead of string "system:node"
This commit is contained in:
Kubernetes Prow Robot 2023-02-16 07:21:50 -08:00 committed by GitHub
commit cd5ab49741
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
ObjectMeta: metav1.ObjectMeta{Name: "system:node"},
ObjectMeta: metav1.ObjectMeta{Name: systemNodeRoleName},
Rules: NodeRules(),
},
{