Skip to content

Commit 7369824

Browse files
committed
preflight permissions: removing clusterextensions/finalizer patch requirement
The clusterextensions/finalizer requirement comes from the desire to support clusters where OwnerReferencesPermissionEnforcement plugin is enabled. This plugin requires "update", but not "patch" for the clusterextensions/finalizers permission. See: https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#ownerreferencespermissionenforcement Signed-off-by: Joe Lanford <[email protected]>
1 parent 2de215e commit 7369824

File tree

1 file changed

+1
-1
lines changed
  • internal/operator-controller/authorization

1 file changed

+1
-1
lines changed

internal/operator-controller/authorization/rbac.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ func (dm *decodedManifest) asAuthorizationAttributesRecordsForUser(manifestManag
364364
})
365365
}
366366

367-
for _, verb := range []string{"update", "patch"} {
367+
for _, verb := range []string{"update"} {
368368
attributeRecords = append(attributeRecords, authorizer.AttributesRecord{
369369
User: manifestManager,
370370
Name: ext.Name,

0 commit comments

Comments
 (0)