Improve error message by removing a confussing statement

This commit is contained in:
AutoExtractor 2020-11-25 22:26:55 +01:00
parent 857477df43
commit 20d7bc36d2
1 changed files with 2 additions and 2 deletions

View File

@ -40,8 +40,8 @@ func (p *EventingScaleUpStatusProcessor) Process(context *context.AutoscalingCon
if status.Result != ScaleUpSuccessful && status.Result != ScaleUpError {
for _, noScaleUpInfo := range status.PodsRemainUnschedulable {
context.Recorder.Event(noScaleUpInfo.Pod, apiv1.EventTypeNormal, "NotTriggerScaleUp",
fmt.Sprintf("pod didn't trigger scale-up (it wouldn't fit if a new node is"+
" added): %s", ReasonsMessage(noScaleUpInfo, consideredNodeGroupsMap)))
fmt.Sprintf("pod didn't trigger scale-up: %s",
ReasonsMessage(noScaleUpInfo, consideredNodeGroupsMap)))
}
} else {
klog.V(4).Infof("Skipping event processing for unschedulable pods since there is a" +