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

Commit

Permalink
Use the default namespace when none is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
versilis committed Mar 21, 2023
1 parent 8d66125 commit 6596d5e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions cmd/internal/kube/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,13 @@ func createSecretFile(path string) (*os.File, error) {
}

func init() {
var err error

secretTemplate, err = template.ParseFS(templateFS, "template/akita-secret.tmpl")
if err != nil {
log.Fatalf("unable to parse kube secret template: %v", err)
}

secretCmd.Flags().StringVarP(
&namespace,
"namespace",
"n",
"",
"default",
"The Kubernetes namespace the secret should be applied to",
)
_ = secretCmd.MarkFlagRequired("namespace")

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

Expand Down

0 comments on commit 6596d5e

Please sign in to comment.