From 07ee47ce87019453a6cf166f7279bfc02fe147f4 Mon Sep 17 00:00:00 2001 From: Hanshal Mehta <122217807+hanshal101@users.noreply.github.com> Date: Fri, 23 Aug 2024 23:17:38 +0530 Subject: [PATCH] feat(cli): create namespace if necessary when installing a namespace-scoped package Signed-off-by: hanshal101 <122217807+hanshal101@users.noreply.github.com> --- cmd/glasskube/cmd/install.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/glasskube/cmd/install.go b/cmd/glasskube/cmd/install.go index e74f921d9..42c60b03c 100644 --- a/cmd/glasskube/cmd/install.go +++ b/cmd/glasskube/cmd/install.go @@ -227,7 +227,7 @@ var installCmd = &cobra.Command{ installCmdOptions.NamespaceOptions.Namespace, ) if errors.IsNotFound(err) { - fmt.Fprintln(os.Stderr, " * Namespace %v does not exist and will be created", + fmt.Println(" * Namespace %v does not exist and will be created", installCmdOptions.NamespaceOptions.Namespace, ) } @@ -247,7 +247,7 @@ var installCmd = &cobra.Command{ err := install.InstallNamespace(ctx, cfg, installCmdOptions.NamespaceOptions.Namespace) if err != nil { - fmt.Fprintf(os.Stderr, "An error occured in creating the Namespace:\n\n%v\n", err) + fmt.Fprintf(os.Stderr, "An error occurred in creating the Namespace:\n\n%v\n", err) cliutils.ExitWithError() }