Skip to content

Commit

Permalink
Merge pull request #12 from pratikkumar-mohite/pm/issue-10
Browse files Browse the repository at this point in the history
Issue 10: Pick default namespace if no namespace is provided
  • Loading branch information
keisku authored Oct 10, 2024
2 parents cdc92b3 + cec77bd commit 68fd1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (o *Options) Complete(f cmdutil.Factory, args []string) error {

switch nTrue(o.Namespace != "", o.AllNamespaces, o.MultiNamespacesString != "") {
case 0:
return fmt.Errorf("must select at least a namespace")
o.Namespace = "default"
case 2, 3:
return fmt.Errorf("must choose one option to use for selecting namespace")
}
Expand Down

0 comments on commit 68fd1c8

Please sign in to comment.