mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Merge pull request #17269 from janetkuo/autoscale-deployments
Auto commit by PR queue bot
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user