From 9cdd7380df1d5ec2a35b3a1859f92de7d274dda3 Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Thu, 19 Jun 2025 02:30:26 +0800 Subject: [PATCH] misc: greptie --- cli/packages/cmd/bootstrap.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/packages/cmd/bootstrap.go b/cli/packages/cmd/bootstrap.go index 51e8b076e..5f6e6d047 100644 --- a/cli/packages/cmd/bootstrap.go +++ b/cli/packages/cmd/bootstrap.go @@ -209,7 +209,7 @@ var bootstrapCmd = &cobra.Command{ k8SecretTemplate, err := cmd.Flags().GetString("k8-secret-template") if err != nil { - log.Error().Msgf("Failed to get output template: %v", err) + log.Error().Msgf("Failed to get k8-secret-template: %v", err) } k8SecretName, err := cmd.Flags().GetString("k8-secret-name") @@ -248,6 +248,7 @@ var bootstrapCmd = &cobra.Command{ ignoreIfBootstrapped, err := cmd.Flags().GetBool("ignore-if-bootstrapped") if err != nil { log.Error().Msgf("Failed to get ignore-if-bootstrapped flag: %v", err) + return } httpClient.SetHeader("Accept", "application/json") @@ -290,7 +291,7 @@ func init() { bootstrapCmd.Flags().String("organization", "", "The name of the organization to create for the instance") bootstrapCmd.Flags().String("output", "", "The type of output to use for the bootstrap command (json or k8-secret)") bootstrapCmd.Flags().Bool("ignore-if-bootstrapped", false, "Whether to continue on error if the instance has already been bootstrapped") - bootstrapCmd.Flags().String("k8-secret-template", "", "The template to use for rendering the Kubernetes secret (entire secret YAML)") + bootstrapCmd.Flags().String("k8-secret-template", "", "The template to use for rendering the Kubernetes secret (entire secret JSON)") bootstrapCmd.Flags().String("k8-secret-namespace", "", "The namespace to use for the Kubernetes secret") bootstrapCmd.Flags().String("k8-secret-name", "", "The name of the Kubernetes secret to create") rootCmd.AddCommand(bootstrapCmd)