Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
Rename flag variables to fit standard conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
versilis committed Mar 21, 2023
1 parent 6596d5e commit 69857a4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/internal/kube/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
)

var (
output string
namespace string
outputFlag string
namespaceFlag string
// Store a parsed representation of /template/akita-secret.tmpl
secretTemplate *template.Template
)
Expand All @@ -30,12 +30,12 @@ var secretCmd = &cobra.Command{
return err
}

err = handleSecretGeneration(namespace, key, secret, output)
err = handleSecretGeneration(namespaceFlag, key, secret, outputFlag)
if err != nil {
return err
}

printer.Infoln("Generated Kubernetes secret config to ", output)
printer.Infoln("Generated Kubernetes secret config to ", outputFlag)
return nil
},
}
Expand Down Expand Up @@ -106,14 +106,14 @@ func createSecretFile(path string) (*os.File, error) {

func init() {
secretCmd.Flags().StringVarP(
&namespace,
&namespaceFlag,
"namespace",
"n",
"default",
"The Kubernetes namespace the secret should be applied to",
)

secretCmd.Flags().StringVarP(&output, "output", "o", "akita-secret.yml", "File to output the generated secret.")
secretCmd.Flags().StringVarP(&outputFlag, "output", "o", "akita-secret.yml", "File to output the generated secret.")

Cmd.AddCommand(secretCmd)
}

0 comments on commit 69857a4

Please sign in to comment.