Skip to content

Commit

Permalink
re-add ansible finalizers rule
Browse files Browse the repository at this point in the history
  • Loading branch information
joelanford committed Oct 27, 2020
1 parent a21269d commit 435d080
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions changelog/fragments/fix-helm-finalizers-permissions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@ entries:
In Helm projects, fix operator RBAC permissions to support the OwnerReferencesPermissionEnforcement admission plugin by adding a `<resource>/finalizers` rule in the operator's role.
kind: "bugfix"
breaking: false
- description: >
In Ansible projects, remove operator RBAC permissions for `<resource>/finalizers` because the Ansible operator does not use finalizers on the main CR.
kind: "bugfix"
breaking: false
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ const rulesFragment = ` ##
resources:
- {{.Resource.Plural}}
- {{.Resource.Plural}}/status
- {{.Resource.Plural}}/finalizers
verbs:
- create
- delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ spec:
resources:
- memcacheds
- memcacheds/status
- memcacheds/finalizers
verbs:
- create
- delete
Expand Down
1 change: 1 addition & 0 deletions testdata/ansible/memcached-operator/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ rules:
resources:
- memcacheds
- memcacheds/status
- memcacheds/finalizers
verbs:
- create
- delete
Expand Down

0 comments on commit 435d080

Please sign in to comment.