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: Cruise Control controller #749

Merged
merged 7 commits into from
Jan 24, 2022
Merged

Conversation

chrisgacsal
Copy link
Contributor

@chrisgacsal chrisgacsal commented Jan 21, 2022

Q A
Bug fix? yes
New feature? no
API breaks? no
Deprecations? no
Related tickets fixes #685, partially #740
License Apache 2.0

What's in this PR?

The Cruise Control controller got completely refactored by enhancing the reconcile logic and adopting the go-cruise-control library for interacting with Cruise Control.

Checklist

  • Implementation tested
  • Error handling code meets the guideline
  • Logging code meets the guideline
  • User guide and development docs updated (if needed)

@chrisgacsal chrisgacsal requested a review from a team as a code owner January 21, 2022 14:50
@chrisgacsal chrisgacsal self-assigned this Jan 21, 2022
@chrisgacsal chrisgacsal force-pushed the refactor-cc-integration branch 2 times, most recently from 8eb2f9a to 6d75035 Compare January 21, 2022 15:00
@chrisgacsal chrisgacsal requested a review from stoader January 21, 2022 15:18
@chrisgacsal chrisgacsal force-pushed the refactor-cc-integration branch from 6d75035 to 0c573ac Compare January 24, 2022 08:02
* `IsActionRequired()` => `IsActive()`
* add comments to methods for `CruiseControlState` and
  `CruiseControlVolumeState` structs
adamantal
adamantal previously approved these changes Jan 24, 2022
Copy link
Contributor

@adamantal adamantal left a comment

Choose a reason for hiding this comment

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

LGTM. I found no major errors in the core logic, so just adding my two nits.

Thanks for working on this! Using the new CC client lib makes the code much nicer!

@chrisgacsal chrisgacsal requested a review from stoader January 24, 2022 16:08
Copy link
Contributor

@adamantal adamantal left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

Copy link
Member

@stoader stoader left a comment

Choose a reason for hiding this comment

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

LGTM. Thx for work.

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.

Operator might stuck if CruiseControl crashes during downscale
4 participants