Remove Generators from Factory

This commit is contained in:
Maciej Szulik
2018-05-25 17:33:22 +02:00
committed by David Eads
parent be43b7cc9d
commit 7495ab5229
6 changed files with 242 additions and 228 deletions

View File

@@ -188,7 +188,7 @@ func (o *ExposeServiceOptions) Complete(f cmdutil.Factory, cmd *cobra.Command) e
return err
}
o.Generators = f.Generators
o.Generators = cmdutil.GeneratorFn
o.Builder = f.NewBuilder()
o.CanBeExposed = polymorphichelpers.CanBeExposedFn
o.ClientForMapping = f.ClientForMapping