Skip to content
This repository was archived by the owner on Apr 17, 2019. It is now read-only.

Conversation

@mwielgus
Copy link
Contributor

@mwielgus mwielgus commented Jan 3, 2017

@mwielgus mwielgus requested a review from jszczepkowski January 3, 2017 20:36
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 3, 2017
@k8s-reviewable
Copy link

This change is Reviewable


const (
// MaxKubernetesNodeDeletiontime is the maximum time needed by Kubernetes to delete an empty node.
MaxKubernetesEmptyNodeDeletiontime = 3 * time.Minute
Copy link
Contributor

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?

Copy link
Contributor Author

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):
Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See 10 lines above :).

Copy link
Contributor

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?

Copy link
Contributor Author

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.

@mwielgus mwielgus force-pushed the add-registry branch 2 times, most recently from 542506c to 17f8af9 Compare January 4, 2017 14:13
@jszczepkowski
Copy link
Contributor

LGTM

@jszczepkowski jszczepkowski added the lgtm Indicates that a PR is ready to be merged. label Jan 4, 2017
@k8s-github-robot
Copy link

/lgtm cancel //PR changed after LGTM, removing LGTM. @jszczepkowski @mwielgus

@k8s-github-robot k8s-github-robot removed the lgtm Indicates that a PR is ready to be merged. label Jan 4, 2017
@mwielgus mwielgus added the lgtm Indicates that a PR is ready to be merged. label Jan 4, 2017
@k8s-github-robot
Copy link

/lgtm cancel //PR changed after LGTM, removing LGTM. @jszczepkowski @mwielgus

@k8s-github-robot k8s-github-robot removed the lgtm Indicates that a PR is ready to be merged. label Jan 4, 2017
@mwielgus mwielgus added the lgtm Indicates that a PR is ready to be merged. label Jan 4, 2017
@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit b69da57 into kubernetes-retired:master Jan 4, 2017
mwielgus pushed a commit to kubernetes/autoscaler that referenced this pull request Apr 18, 2017
…registry

Automatic merge from submit-queue

Cluster-autoscaler: introduce ClusterStateRegistry to main

Ref: #2228 #2229 

cc: @jszczepkowski @fgrzadkowski @piosz
mwielgus pushed a commit to kubernetes/autoscaler that referenced this pull request Apr 18, 2017
…registry

Automatic merge from submit-queue

Cluster-autoscaler: introduce ClusterStateRegistry to main

Ref: #2228 #2229 

cc: @jszczepkowski @fgrzadkowski @piosz
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/autoscaler area/autoscaling cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants