Closed justinas-b closed 3 months ago
It seems that this could be achieved by updating ./cluster-api/tilt-settings.json
file and adding below
"debug": {
"proxmox": {
"port": 30000
}
}
So it should look like:
{
"default_registry": "ghcr.io/ionos-cloud",
"provider_repos": ["../cluster-api-provider-proxmox/", "../cluster-api-ipam-provider-in-cluster/"],
"enable_providers": ["ipam-in-cluster", "proxmox", "kubeadm-bootstrap", "kubeadm-control-plane"],
"allowed_contexts": ["minikube"],
"kustomize_substitutions": {},
"extra_args": {
"proxmox": ["--v=4"]
},
"debug": {
"proxmox": {
"port": 30000
}
}
}
Created https://github.com/ionos-cloud/cluster-api-provider-proxmox/issues/253 to add additional details to documentation
What steps did you take and what happened: docs/Development.md provides pretty detailed instructions how to spin up ionos-cloud/cluster-api-provider-proxmox locally for development purposes, but due to lack of experience with
Tilt
it is not straight forward to setupdlv
for remote debugging usingTilt
.By default ionos-cloud/cluster-api-provider-proxmox container when launched by
Tilt
calls/manager
directly, instead of wrapping it intodlv
What did you expect to happen: It would be super useful to update docs/Development.md with instructions how to debug
/manager
remotely.