From 9ec2f29617f4a062a62df0cad7d3e48d19cc870b Mon Sep 17 00:00:00 2001 From: lgtm <1gtm@users.noreply.github.com> Date: Mon, 27 Jun 2022 00:53:48 -0700 Subject: [PATCH] [cherry-pick] Fix license checking error. (#1077) (#1083) Signed-off-by: piyush1146115 --- pkg/backup.go | 2 ++ pkg/restore.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pkg/backup.go b/pkg/backup.go index 431ab0f35..c00a8c088 100644 --- a/pkg/backup.go +++ b/pkg/backup.go @@ -66,6 +66,8 @@ func NewCmdBackup() *cobra.Command { if err != nil { return err } + opt.config = config + opt.kubeClient, err = kubernetes.NewForConfig(config) if err != nil { return err diff --git a/pkg/restore.go b/pkg/restore.go index dccb96889..a14889582 100644 --- a/pkg/restore.go +++ b/pkg/restore.go @@ -63,6 +63,8 @@ func NewCmdRestore() *cobra.Command { if err != nil { return err } + opt.config = config + opt.kubeClient, err = kubernetes.NewForConfig(config) if err != nil { return err