Merge pull request #6282 from mads-hartmann/mads/log-min-max-cur-size-of-asg

Add min/max/current asg size to log
This commit is contained in:
Kubernetes Prow Robot 2023-11-15 16:58:27 +01:00 committed by GitHub
commit b8c7165c20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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] {
@ -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)