-
Notifications
You must be signed in to change notification settings - Fork 15
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
Refactor/ensure correct rooms #73
Conversation
lftakakura
commented
Aug 20, 2019
- Now watcher's EnsureCorrectRooms replaces pods using rolling strategy.
- When an updateConfig needs a rollback, the API only rolls back the scheduler on database. EnsureCorrectRooms should then replace pods asynchronously.
08af55e
to
3c95db0
Compare
podsToDelete := []string{} | ||
concat := func(podNames []string, err error) error { | ||
podsToDelete := []v1.Pod{} | ||
concat := func(pods []v1.Pod, err error) error { |
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.
It's better to use pointer to struct than the struct itself
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.
🤔 bold claim
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.
LGTM
Just a small comment about logging.
@ghostec and @henrod do you guys still have remarks with this PR or are we good to go? |
* Fix ListSchedulerLocks function * Refactor EnsureCorrectRooms method * Remove use of global lock i UpdateSchedulerConfig * Instantiate clock on EnsureCorrectRooms * Not using global lock in UpdateSchedulerConfig
* Fix ListSchedulerLocks function * Refactor EnsureCorrectRooms method * Remove use of global lock i UpdateSchedulerConfig * Instantiate clock on EnsureCorrectRooms * Not using global lock in UpdateSchedulerConfig
* Fix ListSchedulerLocks function * Refactor EnsureCorrectRooms method * Remove use of global lock i UpdateSchedulerConfig * Instantiate clock on EnsureCorrectRooms * Not using global lock in UpdateSchedulerConfig