update factory interface to overlap with lower RESTClientGetter

This commit is contained in:
David Eads
2018-05-16 10:54:42 -04:00
parent a481f4bbe8
commit 0db40da909
27 changed files with 50 additions and 52 deletions

View File

@@ -92,7 +92,7 @@ func NewCmdExplain(parent string, f cmdutil.Factory, streams genericclioptions.I
func (o *ExplainOptions) Complete(f cmdutil.Factory, cmd *cobra.Command) error {
var err error
o.Mapper, err = f.RESTMapper()
o.Mapper, err = f.ToRESTMapper()
if err != nil {
return err
}