Skip to content

Commit

Permalink
Updating Allocatable along with Capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
Muaaz Saleem committed Jan 10, 2020
1 parent 5c05916 commit 836ac83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cluster-autoscaler/cloudprovider/aws/aws_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 836ac83

Please sign in to comment.