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

STOR-1443: Sync 05_operator_role-hypershift.yaml manifest from cluster-csi-snapsht-controller-operator #2915

Conversation

mpatlasov
Copy link
Contributor

What this PR does / why we need it:

The PR implements restarting csi-snapshot-webhook if the secret csi-snapshot-webhook-secret is updated. To do it, the operator needs to monitor for secret updates. This requires new perms in 05_operator_role-hypershift.yaml. This PR simply syncs those changes to hypershift repo manifest.

/cc @openshift/storage

Checklist

  • [*] Subject and description added to both, commit and PR.
  • [*] Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

…ter-csi-snapsht-controller-operator

The operator needs perms to monitor secret (`csi-snapshot-webhook-secret`) updates.
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Aug 16, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Aug 16, 2023

@mpatlasov: This pull request references STOR-1443 which is a valid jira issue.

In response to this:

What this PR does / why we need it:

The PR implements restarting csi-snapshot-webhook if the secret csi-snapshot-webhook-secret is updated. To do it, the operator needs to monitor for secret updates. This requires new perms in 05_operator_role-hypershift.yaml. This PR simply syncs those changes to hypershift repo manifest.

/cc @openshift/storage

Checklist

  • [*] Subject and description added to both, commit and PR.
  • [*] Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

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.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 16, 2023

@mpatlasov: GitHub didn't allow me to request PR reviews from the following users: openshift/storage.

Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

What this PR does / why we need it:

The PR implements restarting csi-snapshot-webhook if the secret csi-snapshot-webhook-secret is updated. To do it, the operator needs to monitor for secret updates. This requires new perms in 05_operator_role-hypershift.yaml. This PR simply syncs those changes to hypershift repo manifest.

/cc @openshift/storage

Checklist

  • [*] Subject and description added to both, commit and PR.
  • [*] Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

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.

@mpatlasov
Copy link
Contributor Author

/test e2e-aws
/test e2e-kubevirt-aws-ovn

1 similar comment
@mpatlasov
Copy link
Contributor Author

/test e2e-aws
/test e2e-kubevirt-aws-ovn

@@ -67,6 +67,13 @@ rules:
- create
- patch
- update
- apiGroups:
- ""
resources:
Copy link
Member

Choose a reason for hiding this comment

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

Does this need access to all secrets in the namespace, or can we narrow this down to specific resource names?

Copy link
Contributor

Choose a reason for hiding this comment

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

This is only a role (as opposed to clusterrole), so only applies to the namespace where it lives

Copy link
Member

Choose a reason for hiding this comment

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

@csrwng I know. My question still stands -- does this role require access to all secrets in the namespace, or if it's looking at one specific secret (the description says csi-snapshot-webhook-secret) then can we add a resource name to scope the access to that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's how Informers (openshift/cluster-csi-snapshot-controller-operator@2770991#diff-0d623dfd885adb20f991bda4c2453aebd732ca6dbb4d1d4be6e79805c3b48de6R259) work. We can narrow down list-n-watch to specific namespace, but not to specific secret in namespace. I don't know if it's implementation restriction of Informers or API server itself.

@mpatlasov
Copy link
Contributor Author

/test e2e-kubevirt-aws-ovn

@csrwng
Copy link
Contributor

csrwng commented Aug 17, 2023

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 17, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: csrwng, mpatlasov

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

The pull request process is described 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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 17, 2023
@jsafrane
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 17, 2023
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 2583146 and 2 for PR HEAD 28da0fa in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 17, 2023

@mpatlasov: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-kubevirt-aws-ovn 28da0fa link false /test e2e-kubevirt-aws-ovn

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit d597d90 into openshift:main Aug 17, 2023
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/control-plane-operator Indicates the PR includes changes for the control plane operator - in an OCP release jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants