-
Notifications
You must be signed in to change notification settings - Fork 27
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
neonvm-controller: Add image mapping feature #1236
Conversation
No changes to the coverage.
HTML Report |
2dc0fa2
to
c7fcda3
Compare
The image map allows quickly overriding image names specified in the VirtualMachine spec. This is for local developmnet, there's currently no intention of using this in production. I will use this to implement fast reloading of compute images, when you run the console and control plane under Tilt.
c7fcda3
to
41c460d
Compare
I am a bit concerned that we already have fields to control images in VM:
and now introducing something that overlaps it. Should it be better instead to introduce a new field like For example, in the controller loop we could have a logic (pseudocode)
|
Wouldn't say "overlaps". Rather, it provides an extra layer of indirection to it. :-)
The problem I'm trying to solve with this is that when I hook up Tilt to automatically build the compute image from sources, it uses a different image tag on every build. For example, What you're proposing with One option would be to modify the the default image tag in the control plane configmap, and restart the control plane. Another would be to update the settings in the control plane db; that's how we deploy images in staging and production. But it's a bit tedious to write a script that would do that as part of a tilt reload. This PR is a third alternative: Use the original image tag, e.g. Yet another approach might be to always import the generated |
Would it work to re-tag each new image to some consistent tag? e.g. We'd also need to set |
Hmm, I don't know how to do that. Would need a command that connects to the k3d-neon-local-registry and creates a new tag for the image. I'll google around a bit, but let me know if you have ideas.. |
Ok, I was able to cajole Tilt to use a constant tag, instead of generating a new one every time the image is built. With that, I don't need this PR anymore. |
The image map allows quickly overriding image names specified in the VirtualMachine spec. This is for local developmnet, there's currently no intention of using this in production.
I will use this to implement fast reloading of compute images, when you run the console and control plane under Tilt.