-
Notifications
You must be signed in to change notification settings - Fork 53
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
[RHTAPBUGS-595]add deletecollection permission to controllers #380
[RHTAPBUGS-595]add deletecollection permission to controllers #380
Conversation
Signed-off-by: Stephanie <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: yangcao77 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 |
@@ -64,7 +64,7 @@ type SnapshotEnvironmentBindingReconciler struct { | |||
|
|||
const asebName = "SnapshotEnvironmentBinding" | |||
|
|||
//+kubebuilder:rbac:groups=appstudio.redhat.com,resources=snapshotenvironmentbindings,verbs=get;list;watch;create;update;patch;delete | |||
//+kubebuilder:rbac:groups=appstudio.redhat.com,resources=snapshotenvironmentbindings,verbs=get;list;watch;create;update;patch;delete;deletecollection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to update config/rbac?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops. updated
Signed-off-by: Stephanie <[email protected]>
@@ -62,7 +62,7 @@ type ApplicationReconciler struct { | |||
|
|||
const applicationName = "Application" | |||
|
|||
//+kubebuilder:rbac:groups=appstudio.redhat.com,resources=applications,verbs=get;list;watch;create;update;patch;delete | |||
//+kubebuilder:rbac:groups=appstudio.redhat.com,resources=applications,verbs=get;list;watch;create;update;patch;delete;deletecollection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HAS itself doesn’t need the deletecollection verb, just the RHTAP users, so we don’t need to add it to HAS here
What does this PR do?:
This PR adds deletecollection verb to controllers
Which issue(s)/story(ies) does this PR fixes:
https://issues.redhat.com/browse/RHTAPBUGS-595
PR acceptance criteria:
Unit/Functional tests
Documentation
Client Impact
How to test changes / Special notes to the reviewer: