fix: gitops backup and restore need a kubernetes client too (#1475)

This commit is contained in:
Elio Bischof
2021-03-25 14:30:13 +01:00
committed by GitHub
parent 041cacc4af
commit 50bc317d27
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ func BackupCommand(getRv GetRootValues) *cobra.Command {
} }
k8sClient, _, err := cli.Client(monitor, orbConfig, gitClient, rv.Kubeconfig, rv.Gitops) k8sClient, _, err := cli.Client(monitor, orbConfig, gitClient, rv.Kubeconfig, rv.Gitops)
if err != nil && !rv.Gitops { if err != nil {
return err return err
} }

View File

@@ -44,7 +44,7 @@ func RestoreCommand(getRv GetRootValues) *cobra.Command {
} }
k8sClient, _, err := cli.Client(monitor, orbConfig, gitClient, rv.Kubeconfig, rv.Gitops) k8sClient, _, err := cli.Client(monitor, orbConfig, gitClient, rv.Kubeconfig, rv.Gitops)
if err != nil && !rv.Gitops { if err != nil {
return err return err
} }