prevent restmapper lookup for kubectl reconcile

Kubernetes-commit: d3e702fa9938e645c2bc852b0239887ec645ffe5
This commit is contained in:
David Eads 2021-05-07 11:53:37 -04:00 committed by Kubernetes Publisher
parent d005bb9a51
commit 8f3ebd40ae

View file

@ -138,6 +138,7 @@ func (o *ReconcileOptions) Complete(cmd *cobra.Command, f cmdutil.Factory, args
NamespaceParam(namespace).DefaultNamespace().
FilenameParam(enforceNamespace, o.FilenameOptions).
Flatten().
Local().
Do()
if err := r.Err(); err != nil {