devspace-sh / devspace

DevSpace - The Fastest Developer Tool for Kubernetes ⚡ Automate your deployment workflow with DevSpace and develop software directly inside Kubernetes.
https://devspace.sh
Apache License 2.0
4.17k stars 351 forks source link

devspace open will wait for a init container which is a sidecar #2865

Open nberlee opened 2 weeks ago

nberlee commented 2 weeks ago

What happened?
In kubernetes 1.29 the Sidecar feature became general available. This means you have a init container which has a restartPolicy: Always runs forever, effectively as a sidecar. This is what istio uses to prevent a lot of issues

The problem is devspace open will wait for the init container to exit, therefore, devspace dev will never continue.

What did you expect to happen instead?
If restartPolicy is defined in the init container it should just continue.

How can we reproduce the bug? (as minimally and precisely as possible)
Use Kubernetes 1.29 or higher. And use a manifest like https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/

devspace open wil not continue