-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RBAC for Owner Refs Permission Enforcement
Add necessary permissions so that the shipwright build controller can add owner references if a cluster has the OwnerReferencesPermissionEnforcement admission controller enabled. With this admission controller enabled, service accounts need to have explicit permission to delete objects that they set owner references on. When `blockOwnerDeletion` is set on an owner ref, the controller must also have explicit permission to update the finalizer subresource of the parent object. - Added delete permissions for objects we set owner refs on - Added update permissions for the finalizer subresource on owner ref parents - Fix ordering of permissions to use View (read) -> Edit (create, update) -> Admin (delete) ordering.
- Loading branch information
1 parent
2ff33de
commit 9579ced
Showing
3 changed files
with
73 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
apiVersion: shipwright.io/v1alpha1 | ||
kind: Build | ||
metadata: | ||
name: buildpack-golang-build | ||
annotations: | ||
build.shipwright.io/build-run-deletion: "true" | ||
spec: | ||
source: | ||
url: https://github.com/shipwright-io/sample-go | ||
contextDir: source-build | ||
strategy: | ||
name: buildpacks-v3 | ||
kind: ClusterBuildStrategy | ||
output: | ||
image: image-registry.openshift-image-registry.svc:5000/build-examples/taxi-app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters