Skip to content

Commit 0d3d1a2

Browse files
committed
fix: add endpointslice to node rbac
1 parent 3398719 commit 0d3d1a2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
From dea2abd80878be1eff519216c0bad5a0e35462ec Mon Sep 17 00:00:00 2001
2+
From: Mateo Florido <[email protected]>
3+
Date: Thu, 11 Sep 2025 17:36:10 -0500
4+
Subject: [PATCH] fix: allow node to get endpointslices
5+
6+
---
7+
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go | 1 +
8+
1 file changed, 1 insertion(+)
9+
10+
diff --git a/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go b/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go
11+
index 447b0bc2e99..daa3bde6b1c 100644
12+
--- a/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go
13+
+++ b/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go
14+
@@ -228,6 +228,7 @@ func NodeRules() []rbacv1.PolicyRule {
15+
// TODO: add to the Node authorizer and restrict to endpoints referenced by pods or PVs bound to the node
16+
// Needed for glusterfs volumes
17+
rbacv1helpers.NewRule("get").Groups(legacyGroup).Resources("endpoints").RuleOrDie(),
18+
+ rbacv1helpers.NewRule("get", "list", "watch").Groups(discoveryGroup).Resources("endpointslices").RuleOrDie(),
19+
// Used to create a certificatesigningrequest for a node-specific client certificate, and watch
20+
// for it to be signed. This allows the kubelet to rotate it's own certificate.
21+
rbacv1helpers.NewRule("create", "get", "list", "watch").Groups(certificatesGroup).Resources("certificatesigningrequests").RuleOrDie(),
22+
--
23+
2.48.1
24+

0 commit comments

Comments
 (0)