diff --git a/cluster-autoscaler/cloudprovider/clusterapi/clusterapi_nodegroup.go b/cluster-autoscaler/cloudprovider/clusterapi/clusterapi_nodegroup.go index e9072ea7108f..1bf1176925f8 100644 --- a/cluster-autoscaler/cloudprovider/clusterapi/clusterapi_nodegroup.go +++ b/cluster-autoscaler/cloudprovider/clusterapi/clusterapi_nodegroup.go @@ -243,12 +243,6 @@ func (ng *nodegroup) TemplateNodeInfo() (*schedulerframework.NodeInfo, error) { return nil, err } - _, cpuPresent := capacity[corev1.ResourceCPU] - _, memPresent := capacity[corev1.ResourceMemory] - if !cpuPresent || !memPresent { - return nil, cloudprovider.ErrNotImplemented - } - nodeName := fmt.Sprintf("%s-asg-%d", ng.scalableResource.Name(), rand.Int63()) node := corev1.Node{ ObjectMeta: metav1.ObjectMeta{ diff --git a/cluster-autoscaler/cloudprovider/clusterapi/clusterapi_unstructured.go b/cluster-autoscaler/cloudprovider/clusterapi/clusterapi_unstructured.go index dc8a69ffea6f..f8ad7f4e215b 100644 --- a/cluster-autoscaler/cloudprovider/clusterapi/clusterapi_unstructured.go +++ b/cluster-autoscaler/cloudprovider/clusterapi/clusterapi_unstructured.go @@ -193,6 +193,8 @@ func (r unstructuredScalableResource) Taints() []apiv1.Taint { return ret } +// A node group can scale from zero if it can inform about the CPU and memory +// capacity of the nodes within the group. func (r unstructuredScalableResource) CanScaleFromZero() bool { capacity, err := r.InstanceCapacity() if err != nil {