Skip to content

Commit 57b021c

Browse files
committed
fix: requirement to set the namespace on secret
1 parent 8de91fc commit 57b021c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

cmd/secret.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ Use base64 flag if the value has been encoded.
5959
}
6060
secretCmd.Flags().StringVarP(&projectName, "project", "p", conf.Project.Name, "Project name of optimus managed repository")
6161
secretCmd.Flags().StringVarP(&namespaceName, "namespace", "n", namespaceName, "Namespace of deployee")
62-
secretCmd.MarkFlagRequired("namespace")
6362
secretCmd.Flags().BoolVar(&encoded, "base64", false, "Create secret with value that has been encoded")
6463
secretCmd.Flags().BoolVar(&updateOnly, "update-only", false, "Only update existing secret, do not create new")
6564
secretCmd.Flags().StringVarP(&filePath, "file", "f", filePath, "Provide file path to create secret from file instead")
@@ -154,7 +153,6 @@ func secretDeleteSubCommand(l log.Logger, conf config.Optimus) *cli.Command {
154153
}
155154
cmd.Flags().StringVarP(&projectName, "project", "p", conf.Project.Name, "Project name of optimus managed repository")
156155
cmd.Flags().StringVarP(&namespaceName, "namespace", "n", namespaceName, "Namespace name of optimus managed repository")
157-
cmd.MarkFlagRequired("namespace")
158156

159157
cmd.RunE = func(cmd *cli.Command, args []string) error {
160158
secretName, err := getSecretName(args)

0 commit comments

Comments
 (0)