mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-22 15:09:39 +00:00
Merge pull request #20802 from aveshagarwal/master-allnamespaces-issue
Auto commit by PR queue bot
This commit is contained in:
@@ -119,6 +119,10 @@ func RunGet(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string
|
||||
return err
|
||||
}
|
||||
|
||||
if allNamespaces {
|
||||
enforceNamespace = false
|
||||
}
|
||||
|
||||
if len(args) == 0 && len(options.Filenames) == 0 {
|
||||
fmt.Fprint(out, "You must specify the type of resource to get. ", valid_resources)
|
||||
return cmdutil.UsageError(cmd, "Required resource not specified.")
|
||||
|
Reference in New Issue
Block a user