Skip to content

Commit

Permalink
internal/plugins/helm: scaffold finalizers subresource permission for…
Browse files Browse the repository at this point in the history
… created APIs (#4105)
  • Loading branch information
joelanford committed Oct 27, 2020
1 parent 0ccdc4e commit ed052a9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
- When generating bundles and packagemanifests, remove `metadata.namespace` from namespaced resources when writing them into the `manifests` directory to avoid validation errors. ([#3813](https://github.com/operator-framework/operator-sdk/pull/3813))
- Fixed a bug that caused the Helm operator not to set the `InstallSuccessful` and `UpgradeSuccessful` status reasons when the status update fails during installation and upgrade. ([#3735](https://github.com/operator-framework/operator-sdk/pull/3735))
- Bumped helm and k8s dependencies to v3.3.4 and v1.18.8 to fix [this upstream bug](https://github.com/kubernetes/kubernetes/issues/91615). ([#3936](https://github.com/operator-framework/operator-sdk/pull/3936))
- In Helm projects, fix operator permissions for Openshift deployments by adding a `<resource>/finalizers` rule in the operator's role. ([#3779](https://github.com/operator-framework/operator-sdk/pull/3779))
- In Ansible projects, fix operator permissions for Openshift deployments by adding a `<resource>/finalizers` rule in the operator's role. ([#3779](https://github.com/operator-framework/operator-sdk/pull/3779))
- In Go projects, resolved an issue that caused failing tests by changing the Makefile's `test` target to automatically download and configure the necessary `envtest` binaries. ([#3983](https://github.com/operator-framework/operator-sdk/pull/3983))
- Inform user to verify the presence of olm deployment manifests in github when `olm install` command gives a 404 http error. ([#3907](https://github.com/operator-framework/operator-sdk/pull/3907))
- Prevent `run packagemanifests` from creating an OperatorGroup if one already exists in a namespace, and use that OperatorGroup if its target namespaces exactly match those passed in `--install-mode`. See [#3681](https://github.com/operator-framework/operator-sdk/issues/3681). ([#3689](https://github.com/operator-framework/operator-sdk/pull/3689))
Expand Down
7 changes: 7 additions & 0 deletions changelog/fragments/fix-helm-finalizers-permissions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# entries is a list of entries to include in
# release notes and/or the migration guide
entries:
- description: >
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
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,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 @@ -99,6 +99,7 @@ spec:
resources:
- memcacheds
- memcacheds/status
- memcacheds/finalizers
verbs:
- create
- delete
Expand Down
1 change: 1 addition & 0 deletions testdata/helm/memcached-operator/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ rules:
resources:
- memcacheds
- memcacheds/status
- memcacheds/finalizers
verbs:
- create
- delete
Expand Down

0 comments on commit ed052a9

Please sign in to comment.