Skip to content

Commit

Permalink
Merge pull request #993 from pivotal/webhook-rbac
Browse files Browse the repository at this point in the history
Support OwnerReferencesPermissionEnforcement admission controller ena…
  • Loading branch information
Tyler Phelan authored Jul 18, 2022
2 parents 3f76cd0 + 8e3f8be commit b7b98e2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/webhookrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ rules:
- "kpack"
verbs:
- get
- apiGroups:
- ""
resources:
- "namespaces/finalizers"
verbs:
- "update"
# The webhook configured the namespace as the OwnerRef on various cluster-scoped resources,
# which requires we can update the system namespace finalizers.
resourceNames:
- "kpack"
- apiGroups:
- "admissionregistration.k8s.io"
resources:
Expand All @@ -83,6 +93,7 @@ rules:
- "defaults.webhook.kpack.io"
verbs:
- update
- delete
- apiGroups:
- "admissionregistration.k8s.io"
resources:
Expand All @@ -99,6 +110,7 @@ rules:
- "validation.webhook.kpack.io"
verbs:
- update
- delete
- apiGroups:
- "admissionregistration.k8s.io"
resources:
Expand Down

0 comments on commit b7b98e2

Please sign in to comment.