Open 3deep5me opened 1 year ago
once you built the image from code (by something make docker-build
)
then you can just update the image of controller (e.g. kubectl -n cluster-api-provider-proxmox-system edit deploy cluster-api-provider-proxmox-controller-manager
)
how to use local image is completely depends on the Kubernetes provider (kind
, minikube
, etc).
umm yes maybe we should provide something easier way. Current my idea is using Tilt
like many other project so that we can provide a solution from creating management cluster to deploying local image.
btw Another solution which I personally use is just run the code locally (go run ./cmd
) this is more easy way (no need to build container image) and it preferable for debugging use case :)
Thank you for your input. Tilt sounds good saw it in a lot of other projects. Could you go a little bit more into "run the code locally"? I'm new in programming especially go (did the most of the time ops stuff). How can I run the code locally and apply the .Yaml files and establish connection to proxmox etc.?
Hi,
i think i have some trouble because i`m using the develop branch but in my cluster the v2.1 controller runs. i think because of that i get this error after i try to use the (atm only on develop) secretref field.
or vice versa
I briefly looked into the make file, but did not find a option to use a local image(?)
How do you work / how would you handle this?
I read something about this https://kind.sigs.k8s.io/docs/user/local-registry/
Another solution which i personally do like more, we/i could do a build for develop branch and push it into a registry but this wouldn't Adresse the problem on all scopes.
(If this is the problem here at all😅)