Skip to content

Commit

Permalink
feat(cli): create namespace if necessary when installing a namespace-…
Browse files Browse the repository at this point in the history
…scoped package

Signed-off-by: hanshal101 <[email protected]>
  • Loading branch information
hanshal101 committed Aug 23, 2024
1 parent 50da785 commit cb94b46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/glasskube/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,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",

Check failure on line 223 in cmd/glasskube/cmd/install.go

View workflow job for this annotation

GitHub Actions / build

printf: fmt.Println call has possible Printf formatting directive %v (govet)
installCmdOptions.NamespaceOptions.Namespace,
)
}
Expand All @@ -240,7 +240,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()
}

Expand Down

0 comments on commit cb94b46

Please sign in to comment.