mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 14:30:12 +01:00
refact(deps): bump k8s and client-go deps to version v0.20.2 (#294)
Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
This commit is contained in:
parent
533e17a9aa
commit
b1aa6ab51a
2196 changed files with 306727 additions and 251810 deletions
|
|
@ -17,6 +17,8 @@ limitations under the License.
|
|||
package sc
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/openebs/lib-csi/pkg/common/errors"
|
||||
client "github.com/openebs/lib-csi/pkg/common/kubernetes/client"
|
||||
storagev1 "k8s.io/api/storage/v1"
|
||||
|
|
@ -84,22 +86,22 @@ func (k *Kubeclient) withDefaults() {
|
|||
}
|
||||
if k.list == nil {
|
||||
k.list = func(cli *kubernetes.Clientset, opts metav1.ListOptions) (*storagev1.StorageClassList, error) {
|
||||
return cli.StorageV1().StorageClasses().List(opts)
|
||||
return cli.StorageV1().StorageClasses().List(context.TODO(), opts)
|
||||
}
|
||||
}
|
||||
if k.get == nil {
|
||||
k.get = func(cli *kubernetes.Clientset, name string, opts metav1.GetOptions) (*storagev1.StorageClass, error) {
|
||||
return cli.StorageV1().StorageClasses().Get(name, opts)
|
||||
return cli.StorageV1().StorageClasses().Get(context.TODO(), name, opts)
|
||||
}
|
||||
}
|
||||
if k.create == nil {
|
||||
k.create = func(cli *kubernetes.Clientset, sc *storagev1.StorageClass) (*storagev1.StorageClass, error) {
|
||||
return cli.StorageV1().StorageClasses().Create(sc)
|
||||
return cli.StorageV1().StorageClasses().Create(context.TODO(), sc, metav1.CreateOptions{})
|
||||
}
|
||||
}
|
||||
if k.del == nil {
|
||||
k.del = func(cli *kubernetes.Clientset, name string, opts *metav1.DeleteOptions) error {
|
||||
return cli.StorageV1().StorageClasses().Delete(name, opts)
|
||||
return cli.StorageV1().StorageClasses().Delete(context.TODO(), name, *opts)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue