-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UPSTREAM: <carry>: openshift: Move MaxNodesTotalReached event #102
UPSTREAM: <carry>: openshift: Move MaxNodesTotalReached event #102
Conversation
Emit MaxNodesTotalReached in scale up when the condition is reached.
fd90a4c
to
c2f1516
Compare
/refresh |
/retest |
@@ -295,9 +295,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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let the Result
also be filled by ScaleUp()
and totally omit this else if
. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really want to change existing behaviour. All I want is the event emitted when the cluster can scale up no more. I'm hoping that's the smaller, simplest and most discrete change particularly as we want to carry our change from rebase to rebase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fine if you want to take care of event part only. Though i think it wont change behavior if we move the filling up Result
to the ScaleUp, leave it to you to decide whether to include in this PR or not.
/lgtm |
This moves the location of where the event is emitted from by reverting PR #90 and emitting the event during scale-up.