Skip to content

Commit bdb85ea

Browse files
committed
chore: update message to reason in IsPodReady method
1 parent 7380413 commit bdb85ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wait.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,10 @@ func IsPodReadyAndRunning(item *unstructured.Unstructured) (bool, string) {
307307
successStatus = true
308308
}
309309
if successStatus && condition["status"] != "True" {
310-
return false, fmt.Sprintf("⏳ waiting for %s/%s: %s", condition["type"], condition["status"], condition["message"])
310+
return false, fmt.Sprintf("⏳ waiting for %s/%s: %s", condition["type"], condition["status"], condition["reason"])
311311
}
312312
if !successStatus && condition["status"] != "False" {
313-
return false, fmt.Sprintf("⏳ waiting for %s/%s: %s", condition["type"], condition["status"], condition["message"])
313+
return false, fmt.Sprintf("⏳ waiting for %s/%s: %s", condition["type"], condition["status"], condition["reason"])
314314
}
315315
}
316316
return true, ""

0 commit comments

Comments
 (0)