diff --git a/pkg/backup.go b/pkg/backup.go index 332277ef9..1cc29e858 100644 --- a/pkg/backup.go +++ b/pkg/backup.go @@ -117,6 +117,8 @@ func NewCmdBackup() *cobra.Command { if err != nil { return err } + opt.config = config + opt.kubeClient, err = kubernetes.NewForConfig(config) if err != nil { return err