@@ -154,7 +154,7 @@ func GetBootstrapClusterRoles() []authorizationapi.ClusterRole {
154
154
"selfsubjectrulesreviews" , "subjectaccessreviews" ).RuleOrDie (),
155
155
authorizationapi .NewRule ("create" ).Groups ("authentication.k8s.io" ).Resources ("tokenreviews" ).RuleOrDie (),
156
156
// Allow read access to node metrics
157
- authorizationapi .NewRule ("get" ).Groups (kapiGroup ).Resources (authorizationapi .NodeMetricsResource ).RuleOrDie (),
157
+ authorizationapi .NewRule ("get" ).Groups (kapiGroup ).Resources (authorizationapi .NodeMetricsResource , authorizationapi . NodeSpecResource ).RuleOrDie (),
158
158
// Allow read access to stats
159
159
// Node stats requests are submitted as POSTs. These creates are non-mutating
160
160
authorizationapi .NewRule ("get" , "create" ).Groups (kapiGroup ).Resources (authorizationapi .NodeStatsResource ).RuleOrDie (),
@@ -547,7 +547,7 @@ func GetBootstrapClusterRoles() []authorizationapi.ClusterRole {
547
547
authorizationapi .NewRule (read ... ).Groups (kapiGroup ).Resources ("nodes" ).RuleOrDie (),
548
548
// Allow all API calls to the nodes
549
549
authorizationapi .NewRule ("proxy" ).Groups (kapiGroup ).Resources ("nodes" ).RuleOrDie (),
550
- authorizationapi .NewRule ("*" ).Groups (kapiGroup ).Resources ("nodes/proxy" , authorizationapi .NodeMetricsResource , authorizationapi .NodeStatsResource , authorizationapi .NodeLogResource ).RuleOrDie (),
550
+ authorizationapi .NewRule ("*" ).Groups (kapiGroup ).Resources ("nodes/proxy" , authorizationapi .NodeMetricsResource , authorizationapi .NodeSpecResource , authorizationapi . NodeStatsResource , authorizationapi .NodeLogResource ).RuleOrDie (),
551
551
},
552
552
},
553
553
{
@@ -558,7 +558,7 @@ func GetBootstrapClusterRoles() []authorizationapi.ClusterRole {
558
558
// Allow read-only access to the API objects
559
559
authorizationapi .NewRule (read ... ).Groups (kapiGroup ).Resources ("nodes" ).RuleOrDie (),
560
560
// Allow read access to node metrics
561
- authorizationapi .NewRule ("get" ).Groups (kapiGroup ).Resources (authorizationapi .NodeMetricsResource ).RuleOrDie (),
561
+ authorizationapi .NewRule ("get" ).Groups (kapiGroup ).Resources (authorizationapi .NodeMetricsResource , authorizationapi . NodeSpecResource ).RuleOrDie (),
562
562
// Allow read access to stats
563
563
// Node stats requests are submitted as POSTs. These creates are non-mutating
564
564
authorizationapi .NewRule ("get" , "create" ).Groups (kapiGroup ).Resources (authorizationapi .NodeStatsResource ).RuleOrDie (),
0 commit comments