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 #2865

Signed-off-by: Nico Berlee <nico.berlee@on2it.net>
  • Loading branch information
nberlee committed Jun 12, 2024
1 parent 3212b31 commit 8c9484b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/devspace/kubectl/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func GetPodStatus(pod *corev1.Pod) string {
container := pod.Status.InitContainerStatuses[i]

switch {
case container.State.Terminated != nil && container.State.Terminated.ExitCode == 0:
case (container.State.Terminated != nil && container.State.Terminated.ExitCode == 0) || (container.State.Running != nil && pod.Spec.RestartPolicy == corev1.RestartPolicyAlways):
continue
case container.State.Terminated != nil:
// initialization is failed
Expand Down

0 comments on commit 8c9484b

Please sign in to comment.