Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operator: allow controllers to touch ownerReferences always #756

Merged
merged 1 commit into from
Nov 26, 2021

Conversation

mythi
Copy link
Contributor

@mythi mythi commented Nov 18, 2021

Clusters with OwnerReferencesPermissionEnforcement (e.g., OpenShift)
get stricter checks for metadata.ownerReferences.

This appears via errors like:
“is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to
a resource you can’t set finalizers on: ...”

The fix is to add "update" permissions to finalizers subresource
for the xDevicePlugins resources.

Signed-off-by: Mikko Ylinen [email protected]

@mythi mythi changed the title operator: allow controllers to touch ownerRefernces always operator: allow controllers to touch ownerReferneces always Nov 19, 2021
Resources in clusters with OwnerReferencesPermissionEnforcement
(e.g., OpenShift) get stricter checks for metadata.ownerReferences.

This appears via errors like:
“is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to
a resource you can’t set finalizers on: ...”

The fix is to add "update" permissions to finalizers subresource
for the xDevicePlugins resources.

Signed-off-by: Mikko Ylinen <[email protected]>
@mythi mythi changed the title operator: allow controllers to touch ownerReferneces always operator: allow controllers to touch ownerReferences always Nov 26, 2021
@mythi mythi marked this pull request as ready for review November 26, 2021 06:29
@mythi mythi requested review from bart0sh and rojkov as code owners November 26, 2021 06:29
Copy link
Member

@bart0sh bart0sh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants