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

feat: ResourceConsist Controller #24

Merged
merged 20 commits into from
Aug 28, 2023
Merged

feat: ResourceConsist Controller #24

merged 20 commits into from
Aug 28, 2023

Conversation

WeichengWang1
Copy link
Collaborator

@WeichengWang1 WeichengWang1 commented Aug 15, 2023

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

2. What is the scope of this PR (e.g. component or file name):

/pkg/controllers/resourceconsist,
kusionstack/kafed 

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

The PR offers a frame making a customized controller can be realized easily, and offering the ability of controllers following PodOpsLifecycle.
The only thing users need to do to realize a customized controller is writing an adapter implementing ReconcileAdapter.

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

  • N
  • Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

demo controller(pkg/controllers/demoresourceconsist) used as Test Cases.

  • Unit test
  • Integration test
  • Benchmark (add benchmark stats below)
  • Manual test (add detailed scripts or steps below)
  • Other

6. Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@github-actions
Copy link

github-actions bot commented Aug 15, 2023

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@WeichengWang1
Copy link
Collaborator Author

I have read the CLA Document and I hereby sign the CLA

@WeichengWang1 WeichengWang1 requested review from wu8685, Eikykun, shaofan-hs and zoumo and removed request for wu8685 August 15, 2023 12:21
@WeichengWang1
Copy link
Collaborator Author

a demo controller implement resourceconsist updated.

@wu8685
Copy link
Collaborator

wu8685 commented Aug 21, 2023

a demo controller implement resourceconsist updated.

How about we move the demo codes under pkg/controllers/demoresourceconsist to pkg/controllers/resourceconsistent/xxx_test.go as united test?

@WeichengWang1
Copy link
Collaborator Author

a demo controller implement resourceconsist updated.

How about we move the demo codes under pkg/controllers/demoresourceconsist to pkg/controllers/resourceconsistent/xxx_test.go as united test?

good idea

Copy link
Collaborator

@wu8685 wu8685 left a comment

Choose a reason for hiding this comment

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

PTAL

pkg/controllers/resourceconsist/consister.go Outdated Show resolved Hide resolved
pkg/controllers/resourceconsist/consister.go Outdated Show resolved Hide resolved
pkg/controllers/resourceconsist/consister.go Outdated Show resolved Hide resolved
pkg/controllers/resourceconsist/consts.go Outdated Show resolved Hide resolved
pkg/controllers/resourceconsist/consister.go Outdated Show resolved Hide resolved
@WeichengWang1
Copy link
Collaborator Author

@wu8685 two review comments remained for further discussion, ptal.

wu8685
wu8685 previously approved these changes Aug 28, 2023
Copy link
Collaborator

@wu8685 wu8685 left a comment

Choose a reason for hiding this comment

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

LGTM

@Eikykun Eikykun linked an issue Aug 28, 2023 that may be closed by this pull request
@wu8685 wu8685 merged commit cc066e5 into main Aug 28, 2023
5 checks passed
@wu8685 wu8685 deleted the featResourceConsist branch August 28, 2023 10:07
@github-actions github-actions bot locked and limited conversation to collaborators Aug 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement: ResourceConsist features
3 participants