Skip to content

koord-manager: refactor config validation by github.com/go-playground#1233

Merged
koordinator-bot[bot] merged 2 commits intokoordinator-sh:mainfrom
chzhj:validate_refactor
Apr 25, 2023
Merged

koord-manager: refactor config validation by github.com/go-playground#1233
koordinator-bot[bot] merged 2 commits intokoordinator-sh:mainfrom
chzhj:validate_refactor

Conversation

@chzhj
Copy link
Member

@chzhj chzhj commented Apr 20, 2023

Ⅰ. Describe what this PR does

see #1232

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it

Ⅳ. Special notes for reviews

V. Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests
  • All checks passed in make test

@codecov
Copy link

codecov bot commented Apr 20, 2023

Codecov Report

Patch coverage: 77.08% and project coverage change: -0.71 ⚠️

Comparison is base (0af2a00) 66.13% compared to head (823b75f) 65.43%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1233      +/-   ##
==========================================
- Coverage   66.13%   65.43%   -0.71%     
==========================================
  Files         304      309       +5     
  Lines       31573    31756     +183     
==========================================
- Hits        20882    20778     -104     
- Misses       9167     9461     +294     
+ Partials     1524     1517       -7     
Flag Coverage Δ
unittests 65.43% <77.08%> (-0.71%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/util/sloconfig/config.go 66.66% <33.33%> (-33.34%) ⬇️
pkg/webhook/cm/plugins/sloconfig/checker.go 90.38% <71.42%> (-3.24%) ⬇️
pkg/util/sloconfig/validator.go 80.76% <80.76%> (ø)
...webhook/cm/plugins/sloconfig/colocation_checker.go 100.00% <100.00%> (ø)
.../webhook/cm/plugins/sloconfig/cpu_burst_checker.go 100.00% <100.00%> (ø)
...bhook/cm/plugins/sloconfig/resource_qos_checker.go 100.00% <100.00%> (+30.59%) ⬆️
...cm/plugins/sloconfig/resource_threshold_checker.go 100.00% <100.00%> (+16.21%) ⬆️
...hook/cm/plugins/sloconfig/system_config_checker.go 100.00% <100.00%> (+4.83%) ⬆️

... and 22 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@chzhj chzhj force-pushed the validate_refactor branch 2 times, most recently from 4c70cb9 to 4306e47 Compare April 21, 2023 01:35
@zwzhang0107 zwzhang0107 changed the title refactor validation by go-playground koord-manager: refactor validation by go-playground Apr 21, 2023
@jasonliu747 jasonliu747 changed the title koord-manager: refactor validation by go-playground koord-manager: refactor config validation by github.com/go-playground Apr 21, 2023
Signed-off-by: chzhj <blueheartcheng@gmail.com>
@chzhj chzhj force-pushed the validate_refactor branch from b09977c to 4ef89e9 Compare April 24, 2023 06:45
Copy link
Member

@saintube saintube left a comment

Choose a reason for hiding this comment

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

/lgtm

Signed-off-by: chzhj <blueheartcheng@gmail.com>
@koordinator-bot koordinator-bot bot removed the lgtm label Apr 25, 2023
Copy link
Member

@eahydra eahydra left a comment

Choose a reason for hiding this comment

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

/lgtm

@zwzhang0107
Copy link
Contributor

/lgtm

@koordinator-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hormes

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants