From 03d4fd94f8e237280cee82858e9db5bbabd0981e Mon Sep 17 00:00:00 2001 From: Arya Khochare <91268931+Aryakoste@users.noreply.github.com> Date: Tue, 23 Apr 2024 14:53:36 +0530 Subject: [PATCH] fix: make `glasskube version` more helpful when not bootstrapped (#547) --- cmd/glasskube/cmd/version.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/glasskube/cmd/version.go b/cmd/glasskube/cmd/version.go index f6fa2f198..498b82cfa 100644 --- a/cmd/glasskube/cmd/version.go +++ b/cmd/glasskube/cmd/version.go @@ -21,7 +21,8 @@ var versioncmd = &cobra.Command{ fmt.Fprintf(os.Stderr, "glasskube: v%s\n", glasskubeVersion) operatorVersion, err := clientutils.GetPackageOperatorVersion(cmd.Context()) if err != nil { - fmt.Fprintf(os.Stderr, "✗ no deployments found in the glasskube-system namespace\n") + fmt.Fprintf(os.Stderr, "package-operator: not installed\n") + fmt.Fprintf(os.Stderr, "Glasskube is not yet bootstrapped. Use 'glasskube bootstrap' to get started.\n") cliutils.ExitWithError() } else { fmt.Fprintf(os.Stderr, "package-operator: %s\n", operatorVersion)