Skip to content

Commit

Permalink
Use StorageV1 instead of StorageV1beta1 in Kubestr hasCSIDriverObject()
Browse files Browse the repository at this point in the history
  • Loading branch information
jfroy committed Mar 6, 2024
1 parent bc77c15 commit 9878d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kubestr/storage_provisioners.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func (p *Kubestr) processProvisioner(ctx context.Context, provisioner string) (*

// hasCSIDriverObject sees if a provisioner has a CSIDriver Object
func (p *Kubestr) hasCSIDriverObject(ctx context.Context, provisioner string) bool {
csiDrivers, err := p.cli.StorageV1beta1().CSIDrivers().List(ctx, metav1.ListOptions{})
csiDrivers, err := p.cli.StorageV1().CSIDrivers().List(ctx, metav1.ListOptions{})
if err != nil {
return false
}
Expand Down

0 comments on commit 9878d16

Please sign in to comment.