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:
commit
b8c7165c20
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue