You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 27, 2020. It is now read-only.
# wait_until_pods_ready waits for all pods to be ready in the current namespace.
108
+
# wait_until_pods_ready waits for all pods to be ready in the current
109
+
# namespace, which are excluded terminating and failed/succeeded pods.
109
110
# $1: The number of seconds that waits until all pods are ready.
110
111
# $2: The interval (sec) on which to check whether all pods are ready.
111
112
# $3: A label selector to identify a set of pods which to check whether those are ready. Defaults to every pods in the namespace.
@@ -116,8 +117,15 @@ wait_until_pods_ready() {
116
117
117
118
echo"Waiting for pods to be ready for ${period}s (interval: ${interval}s, selector: ${selector:-''})"
118
119
119
-
# The list of "<pod-name> <ready(True|False)>" which is excluded terminating pods
120
-
local template='{{range .items}}{{if not .metadata.deletionTimestamp}}{{.metadata.name}}{{range .status.conditions}}{{if eq .type "Ready"}} {{.status}}{{end}}{{end}}{{"\n"}}{{end}}{{end}}'
120
+
# The list of "<pod-name> <ready(True|False)>" which is excluded terminating and failed/succeeded pods.
121
+
local template="$(cat <<EOL
122
+
{{- range .items -}}
123
+
{{- if and (not .metadata.deletionTimestamp) (ne .status.phase "Failed") (ne .status.phase "Succeeded") -}}
0 commit comments