Skip to content

Commit

Permalink
fix: make glasskube version more helpful when not bootstrapped (gla…
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryakoste authored Apr 23, 2024
1 parent 20ad520 commit 03d4fd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/glasskube/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 03d4fd9

Please sign in to comment.