@@ -67,6 +108,12 @@ func (o *ResourceBuilderFlags) AddFlags(flagset *pflag.FlagSet) {
...
@@ -67,6 +108,12 @@ func (o *ResourceBuilderFlags) AddFlags(flagset *pflag.FlagSet) {
ifo.AllNamespaces!=nil{
ifo.AllNamespaces!=nil{
flagset.BoolVar(o.AllNamespaces,"all-namespaces",*o.AllNamespaces,"If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.")
flagset.BoolVar(o.AllNamespaces,"all-namespaces",*o.AllNamespaces,"If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.")
}
}
ifo.All!=nil{
flagset.BoolVar(o.All,"all",*o.All,"Select all resources in the namespace of the specified resource types")
}
ifo.Local!=nil{
flagset.BoolVar(o.Local,"local",*o.Local,"If true, annotation will NOT contact api-server but run locally.")
}
}
}
// ToBuilder gives you back a resource finder to visit resources that are located
// ToBuilder gives you back a resource finder to visit resources that are located
...
@@ -74,24 +121,45 @@ func (o *ResourceBuilderFlags) ToBuilder(restClientGetter RESTClientGetter, reso
...
@@ -74,24 +121,45 @@ func (o *ResourceBuilderFlags) ToBuilder(restClientGetter RESTClientGetter, reso