Skip to content
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

Updating Development.md to include remote debugging #254

Merged
merged 2 commits into from
Jul 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,20 @@
"kustomize_substitutions": {},
"extra_args": {
"proxmox": ["--v=4"]
},
"debug": {
"proxmox": {
"port": 30000
}
}
}
```
This file instructs Tilt to use the cluster-api-provider-proxmox and ipam-provider-in-cluster repositories. `allowed_contexts` is used to add
allowed clusters other than kind (which is always implicitly enabled).

`debug` section will make sure that `cluster-api-provider-proxmox` starts with [delve remote debuger](https://github.com/go-delve/delve/tree/master) on port `30000`, so that you could attach to it. To do so, you need first to create a port-forward on `cluster-api-provider-proxmox` to expose `tcp/30000` port on your localhost - this could be achieved by running `kubectl port-forward deployments/capmox-controller-manager 30000:30000 -n c

Check failure on line 100 in docs/Development.md

View workflow job for this annotation

GitHub Actions / codespell

debuger ==> debugger
apmox-system` command.
justinas-b marked this conversation as resolved.
Show resolved Hide resolved

- Change directory to cluster-api-ipam-provider-in-cluster `cd ../cluster-api-ipam-provider-in-cluster`.
- Reset the git repository to `1d4735`: `git reset --hard 1d4735`. This is the last commit that works with Cluster API v1.6 and Go v1.20.

Expand Down
Loading