-
Notifications
You must be signed in to change notification settings - Fork 588
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
Setting tracing config for PingSource #4877
Setting tracing config for PingSource #4877
Conversation
Hi @Shashankft9. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Sounds reasonable but it feels to me like we should use the config helper instead of manually handling each ConfigMap. A hint for the implementation, in case you're willing to tackle it in this PR (I think it would greatly simplify the code); // reconciler/controller.go
import (
"knative.dev/eventing/pkg/reconciler/source"
)
// ...
&Reconciler{
adapterConfigs: source.WatchConfigurations(ctx, "pingsource", cmw),
} // resources/receive_adapter.go
env = append(env, args.Configs.ToEnvVars()...)) |
Codecov Report
@@ Coverage Diff @@
## master #4877 +/- ##
==========================================
- Coverage 81.35% 81.34% -0.01%
==========================================
Files 292 292
Lines 8322 8329 +7
==========================================
+ Hits 6770 6775 +5
- Misses 1144 1145 +1
- Partials 408 409 +1
Continue to review full report at Codecov.
|
@antoineco mhm I can try refactoring, but maybe in a separate PR? I will try next week, but if not, atleast the traces will be available in 0.21 release. Makes sense? |
I don't mind that but it would actually be less lines of code to implement that change, that's why I was suggesting it. /ok-to-test |
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.
One small comment. Otherwise 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.
/lgtm
The following is the coverage report on the affected files.
|
/approve @Shashankft9 do you mind opening an issue to use the config helper as @antoineco suggested? |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: antoineco, lionelvillard, Shashankft9 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 |
@lionelvillard I'll send a PR with that change right after this gets merged (it's already done) |
@antoineco you can open the PR, since it does the same thing but in a better way, would be nice to get that merged instead of this 🤔 |
@Shashankft9 it's fine, logical steps are also good when reviewing the commit history 👍 |
Fixes
#4757
Proposed Changes
Release Note
Docs
knative/docs#3249