Merge pull request #17269 from janetkuo/autoscale-deployments

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot
2015-11-21 22:23:23 -08:00
7 changed files with 31 additions and 19 deletions

View File

@@ -295,8 +295,7 @@ func NewFactory(optionalClientConfig clientcmd.ClientConfig) *Factory {
},
CanBeAutoscaled: func(kind string) error {
switch kind {
// TODO: support autoscale for deployments
case "ReplicationController":
case "ReplicationController", "Deployment":
// nothing to do here
default:
return fmt.Errorf("cannot autoscale a %s", kind)