diff --git a/docs/Development.md b/docs/Development.md index 30a82ab9..a3e80875 100644 --- a/docs/Development.md +++ b/docs/Development.md @@ -86,12 +86,20 @@ for more information. "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). +The optional `debug` section will start CAPMOX with a [delve remote debugger](https://github.com/go-delve/delve/tree/master) listening on port `30000`. +You will need to forward the port to localhost, e.g. by running `kubectl port-forward deployments/capmox-controller-manager 30000:30000 -n capmox-system`. + - 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.