Skip to content

Commit

Permalink
Merge pull request #6282 from mads-hartmann/mads/log-min-max-cur-size…
Browse files Browse the repository at this point in the history
…-of-asg

Add min/max/current asg size to log
  • Loading branch information
k8s-ci-robot authored Nov 15, 2023
2 parents ed84969 + 5c286e1 commit b8c7165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cluster-autoscaler/cloudprovider/aws/auto_scaling_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ func (m *asgCache) register(asg *asg) *asg {
return existing
}

klog.V(4).Infof("Updating ASG %s", asg.AwsRef.Name)

// Explicit registered groups should always use the manually provided min/max
// values and the not the ones returned by the API
if !m.explicitlyConfigured[asg.AwsRef] {
Expand All @@ -158,6 +156,8 @@ func (m *asgCache) register(asg *asg) *asg {
existing.MixedInstancesPolicy = asg.MixedInstancesPolicy
existing.Tags = asg.Tags

klog.V(4).Infof("Updated ASG cache for %s. min/max/current is %d/%d/%d", asg.AwsRef.Name, existing.minSize, existing.maxSize, existing.curSize)

return existing
}
klog.V(1).Infof("Registering ASG %s", asg.AwsRef.Name)
Expand Down

0 comments on commit b8c7165

Please sign in to comment.