Add debug log in handleOutOfResourcesErrorsForNodeGroup

This commit is contained in:
Łukasz Osipiuk 2019-05-31 15:26:06 +02:00
parent 0e31439e3b
commit c88f014470
1 changed files with 6 additions and 0 deletions

View File

@ -997,6 +997,12 @@ func (csr *ClusterStateRegistry) handleOutOfResourcesErrorsForNodeGroup(
_, currentUniqueErrorMessagesForErrorCode, currentErrorCodeToInstance := csr.buildInstanceToOutOfResourcesErrorCodeMappings(currentInstances) _, currentUniqueErrorMessagesForErrorCode, currentErrorCodeToInstance := csr.buildInstanceToOutOfResourcesErrorCodeMappings(currentInstances)
previousInstanceToErrorCode, _, _ := csr.buildInstanceToOutOfResourcesErrorCodeMappings(previousInstances) previousInstanceToErrorCode, _, _ := csr.buildInstanceToOutOfResourcesErrorCodeMappings(previousInstances)
for errorCode, instances := range currentErrorCodeToInstance {
if len(instances) > 0 {
klog.V(4).Infof("Found %v instances with errorCode %v", len(instances), errorCode)
}
}
// If node group is scaling up and there are new node-create requests which cannot be satisfied because of // If node group is scaling up and there are new node-create requests which cannot be satisfied because of
// out-of-resources errors we: // out-of-resources errors we:
// - emit event // - emit event