From 50bc317d2797b819124cdb1119db76bb00ab0df6 Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Thu, 25 Mar 2021 14:30:13 +0100 Subject: [PATCH] fix: gitops backup and restore need a kubernetes client too (#1475) --- cmd/zitadelctl/cmds/backup.go | 2 +- cmd/zitadelctl/cmds/restore.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/zitadelctl/cmds/backup.go b/cmd/zitadelctl/cmds/backup.go index 76a5985fa1..fc5b80f67e 100644 --- a/cmd/zitadelctl/cmds/backup.go +++ b/cmd/zitadelctl/cmds/backup.go @@ -42,7 +42,7 @@ func BackupCommand(getRv GetRootValues) *cobra.Command { } k8sClient, _, err := cli.Client(monitor, orbConfig, gitClient, rv.Kubeconfig, rv.Gitops) - if err != nil && !rv.Gitops { + if err != nil { return err } diff --git a/cmd/zitadelctl/cmds/restore.go b/cmd/zitadelctl/cmds/restore.go index 5c544f809e..b1a7273f11 100644 --- a/cmd/zitadelctl/cmds/restore.go +++ b/cmd/zitadelctl/cmds/restore.go @@ -44,7 +44,7 @@ func RestoreCommand(getRv GetRootValues) *cobra.Command { } k8sClient, _, err := cli.Client(monitor, orbConfig, gitClient, rv.Kubeconfig, rv.Gitops) - if err != nil && !rv.Gitops { + if err != nil { return err }