Skip to content

Commit a1cc17d

Browse files
authored
Merge pull request vmware-tanzu#1405 from bryanv/bryanv/fix-wrong-storagepolices-group-rbac
🌱 Fix RBAC group for StoragePolicies in StorageClass controller
2 parents 1f0174b + 9c10301 commit a1cc17d

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

config/rbac/role.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -375,15 +375,3 @@ rules:
375375
- get
376376
- patch
377377
- update
378-
- apiGroups:
379-
- vsphere.policy.vmware.com
380-
resources:
381-
- storagepolicies
382-
verbs:
383-
- create
384-
- delete
385-
- get
386-
- list
387-
- patch
388-
- update
389-
- watch

controllers/storage/storageclass/storageclass_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ type Reconciler struct {
7171
}
7272

7373
// +kubebuilder:rbac:groups=storage.k8s.io,resources=storageclasses,verbs=get;list;watch
74-
// +kubebuilder:rbac:groups=vsphere.policy.vmware.com,resources=storagepolicies,verbs=get;list;watch;create;update;patch;delete
74+
// +kubebuilder:rbac:groups=infra.vmware.com,resources=storagepolicies,verbs=get;list;watch;create;update;patch;delete
7575

7676
func (r *Reconciler) Reconcile(
7777
ctx context.Context,

0 commit comments

Comments
 (0)