Skip to content

Commit

Permalink
Merge pull request #1674 from subhamkrai/test
Browse files Browse the repository at this point in the history
ocs-to-ocs: fix: rbac and GVK
  • Loading branch information
openshift-merge-robot committed May 12, 2022
2 parents 71530c1 + a8dc7f8 commit 5c1f778
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ func (r *StorageClassClaimReconciler) reconcileProviderPhases() (reconcile.Resul

r.storageClassClaim.Status.Phase = v1alpha1.StorageClassClaimInitializing

gvk, err := apiutil.GVKForObject(r.storageConsumer, r.Client.Scheme())
gvk, err := apiutil.GVKForObject(&v1alpha1.StorageConsumer{}, r.Client.Scheme())
if err != nil {
return reconcile.Result{}, fmt.Errorf("failed to get gvk for consumer %w", err)
}
Expand Down
1 change: 1 addition & 0 deletions deploy/bundle/manifests/provider-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ rules:
- ocs.openshift.io
resources:
- storageconsumers
- storageconsumers/finalizers
verbs:
- get
- list
Expand Down
1 change: 1 addition & 0 deletions rbac/provider-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ rules:
- ocs.openshift.io
resources:
- storageconsumers
- storageconsumers/finalizers
verbs:
- get
- list
Expand Down

0 comments on commit 5c1f778

Please sign in to comment.