Skip to content

Commit

Permalink
fix: do not wait for initContainer to exit when it is a sidecar
Browse files Browse the repository at this point in the history
fixes devspace-sh#2865

Signed-off-by: Nico Berlee <nico.berlee@on2it.net>
  • Loading branch information
nberlee committed Jun 12, 2024
1 parent c6f3229 commit 7c629f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/devspace/kubectl/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ func GetPodStatus(pod *corev1.Pod) string {
switch {
case container.State.Terminated != nil && container.State.Terminated.ExitCode == 0:
continue
case container.State.Running != nil && pod.Spec.InitContainers[i].RestartPolicy != nil:
continue
case container.State.Terminated != nil:
// initialization is failed
if len(container.State.Terminated.Reason) == 0 {
Expand Down

0 comments on commit 7c629f4

Please sign in to comment.