Skip to content
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

Merged
merged 5 commits into from
Aug 21, 2019
Merged

Conversation

lftakakura
Copy link
Contributor

  • 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.

@coveralls
Copy link

coveralls commented Aug 20, 2019

Coverage Status

Coverage decreased (-0.03%) to 81.05% when pulling 9044079 on refactor/ensure-correct-rooms into 0ac6bad on master.

@lftakakura lftakakura force-pushed the refactor/ensure-correct-rooms branch from 08af55e to 3c95db0 Compare August 20, 2019 16:08
controller/utils.go Show resolved Hide resolved
controller/utils.go Outdated Show resolved Hide resolved
controller/utils.go Outdated Show resolved Hide resolved
controller/utils.go Outdated Show resolved Hide resolved
podsToDelete := []string{}
concat := func(podNames []string, err error) error {
podsToDelete := []v1.Pod{}
concat := func(pods []v1.Pod, err error) error {
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

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

🤔 bold claim

Copy link
Contributor

@cscatolini cscatolini left a 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.

controller/utils.go Outdated Show resolved Hide resolved
watcher/watcher.go Show resolved Hide resolved
@cscatolini
Copy link
Contributor

@ghostec and @henrod do you guys still have remarks with this PR or are we good to go?

@lftakakura lftakakura merged commit 9338ff7 into master Aug 21, 2019
lftakakura added a commit that referenced this pull request Oct 11, 2019
* Fix ListSchedulerLocks function

* Refactor EnsureCorrectRooms method

* Remove use of global lock i UpdateSchedulerConfig

* Instantiate clock on EnsureCorrectRooms

* Not using global lock in UpdateSchedulerConfig
lftakakura added a commit that referenced this pull request Oct 15, 2019
* Fix ListSchedulerLocks function

* Refactor EnsureCorrectRooms method

* Remove use of global lock i UpdateSchedulerConfig

* Instantiate clock on EnsureCorrectRooms

* Not using global lock in UpdateSchedulerConfig
lftakakura added a commit that referenced this pull request Oct 15, 2019
* Fix ListSchedulerLocks function

* Refactor EnsureCorrectRooms method

* Remove use of global lock i UpdateSchedulerConfig

* Instantiate clock on EnsureCorrectRooms

* Not using global lock in UpdateSchedulerConfig
@caiordjesus caiordjesus deleted the refactor/ensure-correct-rooms branch February 14, 2022 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants