Skip to content

Commit

Permalink
Merge pull request kubernetes#5550 from DataDog/lt-overrides-and-inst…
Browse files Browse the repository at this point in the history
…ancetyperequirements

AWS: only look for InstanceRequirements when needed
  • Loading branch information
k8s-ci-robot authored Mar 27, 2023
2 parents 28a1abf + 98410d8 commit 27cab2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster-autoscaler/cloudprovider/aws/aws_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ func joinNodeLabelsChoosingUserValuesOverAPIValues(extractedLabels map[string]st
}

func (m *AwsManager) updateCapacityWithRequirementsOverrides(capacity *apiv1.ResourceList, policy *mixedInstancesPolicy) error {
if policy == nil {
if policy == nil || len(policy.instanceTypesOverrides) > 0 {
return nil
}

Expand Down

0 comments on commit 27cab2e

Please sign in to comment.