cmd.Flags().BoolVar(&o.all,"all",o.all,"Select all resources, including uninitialized ones, in the namespace of the specified resource types")
cmd.Flags().BoolVar(&o.local,"local",o.local,"If true, set selector will NOT contact api-server but run locally.")
cmd.Flags().String("resource-version","","If non-empty, the selectors update will only succeed if this is the current resource-version for the object. Only valid when specifying a single resource.")
@@ -114,6 +127,9 @@ func (o *ResourceBuilderFlags) AddFlags(flagset *pflag.FlagSet) {
ifo.Local!=nil{
flagset.BoolVar(o.Local,"local",*o.Local,"If true, annotation will NOT contact api-server but run locally.")
}
ifo.IncludeUninitialized!=nil{
flagset.BoolVar(o.IncludeUninitialized,"include-uninitialized",*o.IncludeUninitialized,`If true, the kubectl command applies to uninitialized objects. If explicitly set to false, this flag overrides other flags that make the kubectl commands apply to uninitialized objects, e.g., "--all". Objects with empty metadata.initializers are regarded as initialized.`)
}
}
// ToBuilder gives you back a resource finder to visit resources that are located
...
...
@@ -153,8 +169,21 @@ func (o *ResourceBuilderFlags) ToBuilder(restClientGetter RESTClientGetter, reso