mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +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
|
|
@ -15,6 +15,7 @@
|
|||
package restorebuilder
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
|
||||
client "github.com/openebs/lib-csi/pkg/common/kubernetes/client"
|
||||
|
|
@ -142,7 +143,7 @@ func defaultGet(
|
|||
) (*apis.ZFSRestore, error) {
|
||||
return cli.ZfsV1().
|
||||
ZFSRestores(namespace).
|
||||
Get(name, opts)
|
||||
Get(context.TODO(), name, opts)
|
||||
}
|
||||
|
||||
// defaultList is the default implementation to list
|
||||
|
|
@ -154,7 +155,7 @@ func defaultList(
|
|||
) (*apis.ZFSRestoreList, error) {
|
||||
return cli.ZfsV1().
|
||||
ZFSRestores(namespace).
|
||||
List(opts)
|
||||
List(context.TODO(), opts)
|
||||
}
|
||||
|
||||
// defaultCreate is the default implementation to delete
|
||||
|
|
@ -168,7 +169,7 @@ func defaultDel(
|
|||
opts.PropagationPolicy = &deletePropagation
|
||||
err := cli.ZfsV1().
|
||||
ZFSRestores(namespace).
|
||||
Delete(name, opts)
|
||||
Delete(context.TODO(), name, *opts)
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
@ -181,7 +182,7 @@ func defaultCreate(
|
|||
) (*apis.ZFSRestore, error) {
|
||||
return cli.ZfsV1().
|
||||
ZFSRestores(namespace).
|
||||
Create(rstr)
|
||||
Create(context.TODO(), rstr, metav1.CreateOptions{})
|
||||
}
|
||||
|
||||
// defaultUpdate is the default implementation to update
|
||||
|
|
@ -193,7 +194,7 @@ func defaultUpdate(
|
|||
) (*apis.ZFSRestore, error) {
|
||||
return cli.ZfsV1().
|
||||
ZFSRestores(namespace).
|
||||
Update(rstr)
|
||||
Update(context.TODO(), rstr, metav1.UpdateOptions{})
|
||||
}
|
||||
|
||||
// withDefaults sets the default options
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue