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

Bug 2232552: Update hub RBAC to include Placement finalizer "update" #123

Merged
merged 2 commits into from
Aug 24, 2023

Conversation

ShyamsundarR
Copy link

As per [1] when setting owner references to a resource and
specifically while setting blockOwnerDeletion to true, an
RBAC to update the finalizer of the resource set as the owner
is required.

This commit adds the required RBAC for the same.

[1] https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#ownerreferencespermissionenforcement

Improves debuggability in terms of detecting where the
error originated from, given the additional context.

The added log line for Create was oterwise caught when
looking at status update for DRPC and lacked context
on where it was from.

Signed-off-by: Shyamsundar Ranganathan <[email protected]>
(cherry picked from commit 206e799)
As per [1] when setting owner references to a resource and
specifically while setting blockOwnerDeletion to true, an
RBAC to update the finalizer of the resource set as the owner
is required.

This commit adds the required RBAC for the same.

[1] https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#ownerreferencespermissionenforcement

Signed-off-by: Shyamsundar Ranganathan <[email protected]>
(cherry picked from commit 11b7729)
@openshift-ci
Copy link

openshift-ci bot commented Aug 23, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ShyamsundarR

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci
Copy link

openshift-ci bot commented Aug 23, 2023

@ShyamsundarR: This pull request references Bugzilla bug 2232552, which is invalid:

  • expected the bug to target the "ODF 4.14.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 2232552: Update hub RBAC to include Placement finalizer "update"

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ShyamsundarR ShyamsundarR merged commit cce3d1c into red-hat-storage:release-4.14 Aug 24, 2023
12 checks passed
@ShyamsundarR ShyamsundarR deleted the bz2232552-1 branch August 24, 2023 00:46
@openshift-ci
Copy link

openshift-ci bot commented Aug 24, 2023

@ShyamsundarR: All pull requests linked via external trackers have merged:

Bugzilla bug 2232552 has been moved to the MODIFIED state.

In response to this:

Bug 2232552: Update hub RBAC to include Placement finalizer "update"

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

Successfully merging this pull request may close these issues.

1 participant