mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +00:00
Merge pull request #121239 from my-git9/fix
kubeadm: fix unnecessary namespace field for clusterrole
This commit is contained in:
commit
6897b1225d
@ -56,7 +56,6 @@ func AllowBoostrapTokensToGetNodes(client clientset.Interface) error {
|
||||
if err := apiclient.CreateOrUpdateClusterRole(client, &rbac.ClusterRole{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Name: constants.GetNodesClusterRoleName,
|
||||
Namespace: metav1.NamespaceSystem,
|
||||
},
|
||||
Rules: []rbac.PolicyRule{
|
||||
{
|
||||
@ -72,7 +71,6 @@ func AllowBoostrapTokensToGetNodes(client clientset.Interface) error {
|
||||
return apiclient.CreateOrUpdateClusterRoleBinding(client, &rbac.ClusterRoleBinding{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Name: constants.GetNodesClusterRoleName,
|
||||
Namespace: metav1.NamespaceSystem,
|
||||
},
|
||||
RoleRef: rbac.RoleRef{
|
||||
APIGroup: rbac.GroupName,
|
||||
|
Loading…
Reference in New Issue
Block a user