diff --git a/cluster-autoscaler/cloudprovider/hetzner/hetzner_cloud_provider.go b/cluster-autoscaler/cloudprovider/hetzner/hetzner_cloud_provider.go index 0deab54b679a..d5d5af77f9d9 100644 --- a/cluster-autoscaler/cloudprovider/hetzner/hetzner_cloud_provider.go +++ b/cluster-autoscaler/cloudprovider/hetzner/hetzner_cloud_provider.go @@ -41,7 +41,6 @@ const ( providerIDPrefix = "hcloud://" nodeGroupLabel = hcloudLabelNamespace + "/node-group" hcloudLabelNamespace = "hcloud" - drainingNodePoolId = "draining-node-pool" serverCreateTimeoutDefault = 5 * time.Minute serverRegisterTimeout = 10 * time.Minute defaultPodAmountsLimit = 110 diff --git a/cluster-autoscaler/cloudprovider/hetzner/hetzner_manager.go b/cluster-autoscaler/cloudprovider/hetzner/hetzner_manager.go index 0308e09be177..eb5c9ba62118 100644 --- a/cluster-autoscaler/cloudprovider/hetzner/hetzner_manager.go +++ b/cluster-autoscaler/cloudprovider/hetzner/hetzner_manager.go @@ -154,16 +154,6 @@ func newManager() (*hetznerManager, error) { cachedServers: newServersCache(ctx, client), } - m.nodeGroups[drainingNodePoolId] = &hetznerNodeGroup{ - manager: m, - instanceType: "cx11", - region: "fsn1", - targetSize: 0, - maxSize: 0, - minSize: 0, - id: drainingNodePoolId, - } - return m, nil } @@ -200,11 +190,6 @@ func (m *hetznerManager) deleteServer(server *hcloud.Server) error { return err } -func (m *hetznerManager) addNodeToDrainingPool(node *apiv1.Node) (*hetznerNodeGroup, error) { - m.nodeGroups[drainingNodePoolId].targetSize += 1 - return m.nodeGroups[drainingNodePoolId], nil -} - func (m *hetznerManager) validProviderID(providerID string) bool { return strings.HasPrefix(providerID, providerIDPrefix) }