fix missing apps/replicaset in kubectl

This commit is contained in:
Di Xu
2017-09-26 22:30:27 +08:00
committed by Janet Kuo
parent b188868fd9
commit 137cd9e6fc
3 changed files with 4 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ func ScalerFor(kind schema.GroupKind, c internalclientset.Interface) (Scaler, er
switch kind {
case api.Kind("ReplicationController"):
return &ReplicationControllerScaler{c.Core()}, nil
case extensions.Kind("ReplicaSet"):
case extensions.Kind("ReplicaSet"), apps.Kind("ReplicaSet"):
return &ReplicaSetScaler{c.Extensions()}, nil
case batch.Kind("Job"):
return &JobScaler{c.Batch()}, nil // Either kind of job can be scaled with Batch interface.