From 836ac8360be988acbffda9c79acb7af9d86e79ea Mon Sep 17 00:00:00 2001 From: Muaaz Saleem Date: Fri, 10 Jan 2020 11:19:48 +0100 Subject: [PATCH] Updating Allocatable along with Capacity --- cluster-autoscaler/cloudprovider/aws/aws_manager.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cluster-autoscaler/cloudprovider/aws/aws_manager.go b/cluster-autoscaler/cloudprovider/aws/aws_manager.go index f65b35051b8d..15ed8240155c 100644 --- a/cluster-autoscaler/cloudprovider/aws/aws_manager.go +++ b/cluster-autoscaler/cloudprovider/aws/aws_manager.go @@ -262,6 +262,7 @@ func (m *AwsManager) buildNodeFromTemplate(asg *asg, template *asgTemplate) (*ap resourcesFromTags := extractAllocatableResourcesFromAsg(template.Tags) if val, ok := resourcesFromTags["ephemeral-storage"]; ok { node.Status.Capacity[apiv1.ResourceEphemeralStorage] = *val + node.Status.Allocatable[apiv1.ResourceEphemeralStorage] = *val } // NodeLabels