move scaleClient from factory

This commit is contained in:
juanvallejo
2018-05-24 15:57:19 -04:00
committed by David Eads
parent be43b7cc9d
commit 3895887f5e
5 changed files with 37 additions and 8 deletions

View File

@@ -289,7 +289,7 @@ func ScaleJob(info *resource.Info, jobsClient batchclient.JobsGetter, count uint
}
func scaler(f cmdutil.Factory) (kubectl.Scaler, error) {
scalesGetter, err := f.ScaleClient()
scalesGetter, err := cmdutil.ScaleClientFn(f)
if err != nil {
return nil, err
}