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

Enhance config API, support initialization by config parser #290

Merged
merged 2 commits into from
Oct 19, 2020

Conversation

louyuting
Copy link
Collaborator

@louyuting louyuting commented Oct 14, 2020

Describe what this PR does / why we need it

  1. Refine config logic
  2. Add func InitWithParser(configBytes []byte, parser func([]byte) (*config.Entity, error)) (err error) to initialize Sentinel

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

@louyuting louyuting added the area/configuration Issue related to configurations of Sentinel label Oct 14, 2020
@louyuting louyuting added this to the 1.0.0 milestone Oct 14, 2020
@codecov-io
Copy link

codecov-io commented Oct 14, 2020

Codecov Report

Merging #290 into master will decrease coverage by 0.07%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #290      +/-   ##
==========================================
- Coverage   51.52%   51.44%   -0.08%     
==========================================
  Files          80       80              
  Lines        4004     4010       +6     
==========================================
  Hits         2063     2063              
- Misses       1655     1661       +6     
  Partials      286      286              
Impacted Files Coverage Δ
api/init.go 0.00% <0.00%> (ø)
core/config/config.go 21.73% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0f7c726...43d2b1a. Read the comment docs.

@louyuting louyuting added the kind/api-change Issues or PRs related to api changes label Oct 14, 2020
Copy link
Member

@sczyh30 sczyh30 left a comment

Choose a reason for hiding this comment

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

LGTM

@sczyh30 sczyh30 added the kind/enhancement Category issues or PRs related to enhancement label Oct 19, 2020
@sczyh30 sczyh30 merged commit a9496ed into alibaba:master Oct 19, 2020
@sczyh30
Copy link
Member

sczyh30 commented Oct 19, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/configuration Issue related to configurations of Sentinel kind/api-change Issues or PRs related to api changes kind/enhancement Category issues or PRs related to enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants