-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Cluster-autoscaler: introduce ClusterStateRegistry to main #2246
Cluster-autoscaler: introduce ClusterStateRegistry to main #2246
Conversation
cluster-autoscaler/scale_down.go
Outdated
|
|
||
| const ( | ||
| // MaxKubernetesNodeDeletiontime is the maximum time needed by Kubernetes to delete an empty node. | ||
| MaxKubernetesEmptyNodeDeletiontime = 3 * time.Minute |
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.
Do you intend to make it configurable by flag in future?
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.
Yes
| glog.Errorf("Problem with empty node deletion: %v", err) | ||
| finalError = err | ||
| } | ||
| case <-time.After(timeLeft): |
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.
Will it behave correctly if timeLeft is negative?
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.
Do you have a unittest for timeout here?
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.
See 10 lines above :).
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.
OK ;) how abut the test?
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.
Not at this moment, I will be adding cloud provider failure related tests later.
542506c to
17f8af9
Compare
|
LGTM |
|
/lgtm cancel //PR changed after LGTM, removing LGTM. @jszczepkowski @mwielgus |
|
/lgtm cancel //PR changed after LGTM, removing LGTM. @jszczepkowski @mwielgus |
|
Automatic merge from submit-queue |
…registry Automatic merge from submit-queue Cluster-autoscaler: introduce ClusterStateRegistry to main Ref: #2228 #2229 cc: @jszczepkowski @fgrzadkowski @piosz
…registry Automatic merge from submit-queue Cluster-autoscaler: introduce ClusterStateRegistry to main Ref: #2228 #2229 cc: @jszczepkowski @fgrzadkowski @piosz
Ref: #2228 #2229
cc: @jszczepkowski @fgrzadkowski @piosz