Skip to content

Commit bff5f08

Browse files
MrHohnjhorwit2
andcommitted
Allow service controller role to patch service status
Co-authored-by: Josh Horwitz <[email protected]>
1 parent a1f0704 commit bff5f08

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func buildControllerRoles() ([]rbacv1.ClusterRole, []rbacv1.ClusterRoleBinding)
297297
ObjectMeta: metav1.ObjectMeta{Name: saRolePrefix + "service-controller"},
298298
Rules: []rbacv1.PolicyRule{
299299
rbacv1helpers.NewRule("get", "list", "watch").Groups(legacyGroup).Resources("services").RuleOrDie(),
300-
rbacv1helpers.NewRule("update").Groups(legacyGroup).Resources("services/status").RuleOrDie(),
300+
rbacv1helpers.NewRule("patch", "update").Groups(legacyGroup).Resources("services/status").RuleOrDie(),
301301
rbacv1helpers.NewRule("list", "watch").Groups(legacyGroup).Resources("nodes").RuleOrDie(),
302302
eventsRule(),
303303
},

plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/controller-roles.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,7 @@ items:
11171117
resources:
11181118
- services/status
11191119
verbs:
1120+
- patch
11201121
- update
11211122
- apiGroups:
11221123
- ""

0 commit comments

Comments
 (0)