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

Decouple api-server from controller framework #574

Merged
merged 16 commits into from
Feb 13, 2019
Merged

Decouple api-server from controller framework #574

merged 16 commits into from
Feb 13, 2019

Conversation

leonwanghui
Copy link
Collaborator

@leonwanghui leonwanghui commented Dec 28, 2018

What this PR does / why we need it:
See design spec for detailed information.
Please notice that this PR would address Phase 1 of the design spec.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:
@xing-yang @wisererik Please take a review at this PR, thanks!

Release note:

Signed-off-by: leonwanghui <wanghui71leon@gmail.com>
@leonwanghui leonwanghui self-assigned this Dec 28, 2018
Signed-off-by: leonwanghui <wanghui71leon@gmail.com>
@wisererik
Copy link
Collaborator

please fix the CI error.

Signed-off-by: leonwanghui <wanghui71leon@gmail.com>
@leonwanghui
Copy link
Collaborator Author

Currently this PR has passed unit test and integration test, @xxwjj please take a look at it and update devsds script, thanks!

@leonwanghui leonwanghui changed the title [WIP] api-server framework refactor api-server framework refactor Jan 14, 2019
@leonwanghui leonwanghui added the feature there is a huge framework change or feature addition label Jan 14, 2019
@leonwanghui leonwanghui changed the title api-server framework refactor Decouple api-server from controller framework Jan 14, 2019
@coveralls
Copy link

coveralls commented Jan 14, 2019

Coverage Status

Coverage decreased (-1.3%) to 40.34% when pulling 14a4c10 on leonwanghui:api-refactor into 564afc8 on opensds:development.

Signed-off-by: leonwanghui <wanghui71leon@gmail.com>
@leonwanghui
Copy link
Collaborator Author

Hi @xing-yang @wisererik , please take a review at this patch, thanks!

cmd/osdsapiserver/osdsapiserver.go Outdated Show resolved Hide resolved
// NOTE:The real volume group deletion process.
// Volume group deletion request is sent to the Dock. Dock will remove
// volume group record after volume group deletion operation is completed.
if err = v.CtrClient.Connect(CONF.OsdsLet.ApiEndpoint); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should let controller update the database, not Dock.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok, I will update the code in next PR.

Signed-off-by: leonwanghui <wanghui71leon@gmail.com>
@leonwanghui leonwanghui added this to the Capri Milestone-1 milestone Jan 26, 2019
Signed-off-by: leonwanghui <wanghui71leon@gmail.com>
Signed-off-by: leonwanghui <wanghui71leon@gmail.com>
Signed-off-by: leonwanghui <wanghui71leon@gmail.com>
@leonwanghui
Copy link
Collaborator Author

@xing-yang Please take a look at this patch, thanks!

@leonwanghui
Copy link
Collaborator Author

I will merge this patch for now, and start the second step of design proposal

@leonwanghui leonwanghui merged commit 3f19ebb into sodafoundation:development Feb 13, 2019
@leonwanghui leonwanghui deleted the api-refactor branch February 13, 2019 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature there is a huge framework change or feature addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants