-
Notifications
You must be signed in to change notification settings - Fork 777
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
fix: validate update AdvancedDaemonSet #1505
Conversation
b707d91
to
4379e1c
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1505 +/- ##
==========================================
- Coverage 48.55% 47.81% -0.75%
==========================================
Files 157 161 +4
Lines 22480 23395 +915
==========================================
+ Hits 10916 11187 +271
- Misses 10360 10995 +635
- Partials 1204 1213 +9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@hantmac your UT coverage is estimated to be a bit fuller. |
These test cover the added code. I can't add more UT 😢 |
can you modify the UT to invoke DaemonSetCreateUpdateHandler.Handle function, UT should cover the published function |
83f9acc
to
bd4844c
Compare
It sounds somewhat unreasonable. It seems like for the sake of UT, just UT 🤔 |
There was a problem hiding this 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: hantmac <hantmac@outlook.com> refactor it fix fix Signed-off-by: hantmac <hantmac@outlook.com>
edf323d
to
603a441
Compare
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zmberg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* fix: validate update AdvancedDaemonSet refactor it fix fix * fix ut ---------
Ⅰ. Describe what this PR does
Fix #1498
Ⅱ. Does this pull request fix one issue?
Ⅲ. Describe how to verify it
Run test
TestValidateDaemonSetUpdate
or update Advanced DaemonSetSpec.Selector
will get errorⅣ. Special notes for reviews