-
Notifications
You must be signed in to change notification settings - Fork 332
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
Don't migrate storage version if CRD has one storage version #2861
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2861 +/- ##
==========================================
+ Coverage 81.87% 81.88% +0.01%
==========================================
Files 167 167
Lines 10222 10225 +3
==========================================
+ Hits 8369 8373 +4
+ Misses 1608 1606 -2
- Partials 245 246 +1
☔ View full report in Codecov by Sentry. |
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.
unit tests please :)
- fakes patch and expect it doesn't happen
cclient.Fake.PrependReactor("patch", "customresourcedefinitions", func(action k8stesting.Action) (handled bool, ret runtime.Object, err error) { | ||
pa, ok := action.(k8stesting.PatchAction) | ||
if !ok { | ||
return true, nil, fmt.Errorf("not a patch action: %#v", action) |
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.
We want to return false
since we aren't handling this action - but given you're filtering using the patch
verb in the Prepend
call I would recommend just dropping this if block cause you're always going to get PatchAction
type here
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.
Good catch. I've removed the unnecessary check too.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprotaso, kauana 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 |
/retest - flakey OpenCensus test |
@dprotaso: The
Use In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test unit-tests_pkg_main |
Changes
Fixes #2845