Skip to content

Commit

Permalink
pick default namespace if no namespace is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikkumar-mohite committed Sep 23, 2024
1 parent cdc92b3 commit cec77bd
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 cec77bd

Please sign in to comment.