We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bb9022 commit 63a721eCopy full SHA for 63a721e
cli/pkg/utils/pod.go
@@ -11,6 +11,13 @@ func AssertPodReady(pod *corev1.Pod) error {
11
return fmt.Errorf("pod is nil")
12
}
13
14
+ // simply ignore finished pod
15
+ // it can be seen as just an execution record, not a running pod
16
+ // and the deployment will create a new replica
17
+ if pod.Status.Phase == corev1.PodSucceeded || pod.Status.Phase == corev1.PodFailed {
18
+ return nil
19
+ }
20
+
21
podKey := fmt.Sprintf("%s/%s", pod.Namespace, pod.Name)
22
if pod.DeletionTimestamp != nil {
23
return fmt.Errorf("pod %s is terminating", podKey)
0 commit comments