Skip to content
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

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

Open
nberlee opened this issue Jun 12, 2024 · 0 comments · May be fixed by #2866
Open

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

nberlee opened this issue Jun 12, 2024 · 0 comments · May be fixed by #2866
Labels
kind/bug Something isn't working

Comments

@nberlee
Copy link
Contributor

nberlee commented Jun 12, 2024

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

@nberlee nberlee added the kind/bug Something isn't working label Jun 12, 2024
nberlee added a commit to nberlee/devspace that referenced this issue Jun 12, 2024
nberlee added a commit to nberlee/devspace that referenced this issue Jun 12, 2024
nberlee added a commit to nberlee/devspace that referenced this issue Jun 12, 2024
in order to support initContainer RestartPolicy I had to update client-go to 1.29

fixes devspace-sh#2865

Signed-off-by: Nico Berlee <[email protected]>
nberlee added a commit to nberlee/devspace that referenced this issue Jun 12, 2024
in order to support initContainer RestartPolicy I had to update client-go to 1.29

fixes devspace-sh#2865

Signed-off-by: Nico Berlee <[email protected]>
nberlee added a commit to nberlee/devspace that referenced this issue Jun 12, 2024
@nberlee nberlee changed the title devspace dev will wait for a init container which is a sidecar devspace open will wait for a init container which is a sidecar Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant