-
Notifications
You must be signed in to change notification settings - Fork 620
refactor: Replace Telepresence with ko --debug #8869
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>
|
Welcome @Arpit529Srivastava! It looks like this is your first PR to knative/eventing 🎉 |
|
Hi @Arpit529Srivastava. 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. DetailsInstructions 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-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Arpit529Srivastava The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/cc @creydr PTAL, |
creydr
left a comment
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 a lot @Arpit529Srivastava for improving this.
I left two comments
DEVELOPMENT.md
Outdated
| ``` | ||
|
|
||
| ## Debugging Knative controllers and friends locally | ||
| ## Debugging Knative controllers and webhooks |
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.
| ## Debugging Knative controllers and webhooks | |
| ## Debugging Knative controllers and friends locally |
I'd keep the initial version here, because everything what is build with ko in knative can be debugged
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.
i see, made the changes :)
| { | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
| { | ||
| "name": "Connect to Eventing Controller", | ||
| "type": "go", | ||
| "request": "attach", | ||
| "mode": "remote", | ||
| "port": 40000, | ||
| "host": "127.0.0.1", | ||
| "substitutePath": [ | ||
| { | ||
| "from": "${workspaceFolder}", | ||
| "to": "/go/src/knative.dev/eventing" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
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.
@twoGiants as you're working a lot with VSCode: is all of this needed to use ko debug?
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.
the substitutePath is there to map the local workspace path to the go module path inside the container, so vscode can correctly resolve source locations for breakpoints. that said, i'll wait for @twoGiants's review.
Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>
addressed, thanks for the review :) |
Fixes #7099
Proposed Changes
ko --debugapproachPre-review Checklist
Release Note
Docs
this pr updates the developer documentation (
DEVELOPMENT.md) in this repository. no external documentation changes are needed since this only affects the development workflow and not any user-facing features.