Skip to content

Commit

Permalink
Merge pull request #2782 from OdedViner/add_watch_snapshot
Browse files Browse the repository at this point in the history
Add watch verb to snapshot.storage.k8s.io group
  • Loading branch information
openshift-merge-bot[bot] authored Sep 3, 2024
2 parents 18a41cd + 71c73fc commit 0f1459b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 25 deletions.
9 changes: 1 addition & 8 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -309,15 +309,8 @@ rules:
- delete
- get
- list
- update
- watch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshots
verbs:
- create
- delete
- get
- apiGroups:
- storage.k8s.io
resources:
Expand Down
2 changes: 1 addition & 1 deletion controllers/storagecluster/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ 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=template.openshift.io,resources=templates,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups=snapshot.storage.k8s.io,resources=volumesnapshotclasses,verbs=get;watch;create;update;delete
// +kubebuilder:rbac:groups=config.openshift.io,resources=infrastructures;networks,verbs=get;list;watch
// +kubebuilder:rbac:groups=config.openshift.io,resources=clusterversions;networks,verbs=get;list;watch
// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch;create;update
Expand Down
9 changes: 1 addition & 8 deletions deploy/csv-templates/ocs-operator.csv.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -480,15 +480,8 @@ spec:
- delete
- get
- list
- update
- watch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshots
verbs:
- create
- delete
- get
- apiGroups:
- storage.k8s.io
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -489,15 +489,8 @@ spec:
- delete
- get
- list
- update
- watch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshots
verbs:
- create
- delete
- get
- apiGroups:
- storage.k8s.io
resources:
Expand Down

0 comments on commit 0f1459b

Please sign in to comment.