It would be great if a platform was able to inject an always up to date version of Daytona into arbitrary K8s workloads.
A common way to do this in the K8s world is to create a mutating admission webhook that can rewrite a pod to do the following:
Inject an initContainer and a shared memory volume between the initContainer and the other containers.
Make the binary in the init container copy itself to the shared volume.
Rewrite the command on the application containers to execute the binary that was copied to the shared volume.
If Daytona supported a flag like --copy-to that would allow Daytona to copy itself to a destination then it would be possible to do the above while still using a feature like --secret-env/--entrypoint.
It would be great if a platform was able to inject an always up to date version of Daytona into arbitrary K8s workloads.
A common way to do this in the K8s world is to create a mutating admission webhook that can rewrite a pod to do the following:
initContainer
and a shared memory volume between theinitContainer
and the other containers.command
on the application containers to execute the binary that was copied to the shared volume.If Daytona supported a flag like
--copy-to
that would allow Daytona to copy itself to a destination then it would be possible to do the above while still using a feature like--secret-env
/--entrypoint
.