Skip to content

Commit

Permalink
UPSTREAM: <carry>: openshift: Revert "Merge pull request kubernetes#90
Browse files Browse the repository at this point in the history
…from frobware/add-cluster-size-reached-event"

This reverts commit 9b2cf49, reversing
changes made to 291cdcd.
  • Loading branch information
frobware committed Jun 19, 2019
1 parent 40a4a2d commit 97f1da1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cluster-autoscaler/core/static_autoscaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,7 @@ func (a *StaticAutoscaler) RunOnce(currentTime time.Time) errors.AutoscalerError
klog.V(1).Info("No unschedulable pods")
} else if a.MaxNodesTotal > 0 && len(readyNodes) >= a.MaxNodesTotal {
scaleUpStatus.Result = status.ScaleUpNoOptionsAvailable
msg := "Max total nodes in cluster reached"
klog.V(1).Info(msg)
autoscalingContext.LogRecorder.Eventf(apiv1.EventTypeWarning, "MaxNodesTotalReached", msg)
klog.V(1).Info("Max total nodes in cluster reached")
} else if allPodsAreNew(unschedulablePodsToHelp, currentTime) {
// The assumption here is that these pods have been created very recently and probably there
// is more pods to come. In theory we could check the newest pod time but then if pod were created
Expand Down

0 comments on commit 97f1da1

Please sign in to comment.