Skip to content

Commit

Permalink
Add rbac permission for packageinstall finalizers (#582)
Browse files Browse the repository at this point in the history
https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#ownerreferencespermissionenforcement
enforces that you need the update perm for the finalizers subresource to
make an object be owned by it. We create Apps that are owned by
PackageInstalls, and thus need to be able to update the
packageinstalls/finalizers.
  • Loading branch information
Ben Moss authored Mar 22, 2022
1 parent f5c953f commit e6f78c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/rbac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ rules:
resources: ["apps", "apps/status"]
verbs: ["*"]
- apiGroups: ["packaging.carvel.dev"]
resources: ["packageinstalls", "packageinstalls/status"]
resources: ["packageinstalls", "packageinstalls/status", "packageinstalls/finalizers"]
verbs: ["*"]
- apiGroups: ["packaging.carvel.dev"]
resources: ["packagerepositories", "packagerepositories/status"]
Expand Down

0 comments on commit e6f78c7

Please sign in to comment.