From 9878d1692932ea3682e43f08af9d43e7e8aa7ef4 Mon Sep 17 00:00:00 2001 From: Jean-Francois Roy Date: Wed, 6 Mar 2024 10:14:35 -0800 Subject: [PATCH] Use StorageV1 instead of StorageV1beta1 in Kubestr hasCSIDriverObject() --- pkg/kubestr/storage_provisioners.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubestr/storage_provisioners.go b/pkg/kubestr/storage_provisioners.go index ca89824..7ea0133 100644 --- a/pkg/kubestr/storage_provisioners.go +++ b/pkg/kubestr/storage_provisioners.go @@ -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 }