-
Notifications
You must be signed in to change notification settings - Fork 593
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
setup proper schemes in the fake dynamic client used in unit tests #5477
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprotaso 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 |
Going to verify this |
Codecov Report
@@ Coverage Diff @@
## main #5477 +/- ##
==========================================
- Coverage 82.78% 82.71% -0.07%
==========================================
Files 197 197
Lines 6093 6098 +5
==========================================
Hits 5044 5044
- Misses 724 729 +5
Partials 325 325
Continue to review full report at Codecov.
|
/retest |
/hold cancel Verified run: https://github.com/knative/pkg/pull/2145/checks?check_run_id=2775070136 |
/assign @vaikas |
/lgtm |
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.
Thanks @dprotaso I know this was merged already, but just curious about that one seeming duplicate entry.
// Re-wire some injection so that an informer has a dynamic client | ||
// with the correct scheme | ||
ctx, _ = fakedynamicclient.With(ctx, NewScheme()) | ||
ctx, _ = fakedynamicclient.With(ctx, NewScheme()) |
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.
Why is this there twice?
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.
whoops - that's not intended
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.
done: #5488
I also removed some unnecessary
init
functions that modified the k8s globalscheme.Scheme
This should help when bumping K8s libs to 1.20