-
Notifications
You must be signed in to change notification settings - Fork 184
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
Add watch verb to snapshot.storage.k8s.io group #2782
Add watch verb to snapshot.storage.k8s.io group #2782
Conversation
@@ -114,7 +114,7 @@ var validTopologyLabelKeys = []string{ | |||
// +kubebuilder:rbac:groups=core,resources=namespaces,verbs=get | |||
// +kubebuilder:rbac:groups=apps,resources=deployments;daemonsets;replicasets;statefulsets,verbs=get;list;watch;create;update;delete | |||
// +kubebuilder:rbac:groups=monitoring.coreos.com,resources=servicemonitors;prometheusrules,verbs=get;list;watch;create;update;delete | |||
// +kubebuilder:rbac:groups=snapshot.storage.k8s.io,resources=volumesnapshots;volumesnapshotclasses,verbs=get;create;delete | |||
// +kubebuilder:rbac:groups=snapshot.storage.k8s.io,resources=volumesnapshots;volumesnapshotclasses,verbs=get;watch;create;delete |
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.
AFAIK ocs-operator doesnt need volumesnapshots permission that can be removed and also you need update access for volumesnapshotclass
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.
#2774 (comment)
@Madhu-1 I don't find the update
verb in the code.
Removed volumesnapshots
resource
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.
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.
@Madhu-1 @iamniting done
c41316d
to
029c5b2
Compare
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.
We should not remove volumesnapshots permissions
Discard, Missed Madhu's comment. |
029c5b2
to
c4ef7f0
Compare
Signed-off-by: oviner <[email protected]>
c4ef7f0
to
71c73fc
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: iamniting, OdedViner 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 |
0f1459b
into
red-hat-storage:main
https://github.com/red-hat-storage/ocs-operator/blob/main/controllers/storagecluster/storagecluster_controller.go#L232