|
|
|
@@ -639,13 +639,13 @@ public class K8sClientUtil { |
|
|
|
CoreV1Api api = new CoreV1Api(apiClient); |
|
|
|
V1Pod pod = api.readNamespacedPod(podName, namespace, null, null, null); |
|
|
|
String status = pod.getStatus().getPhase(); |
|
|
|
Boolean podReady = true; |
|
|
|
Boolean podReady = false; |
|
|
|
|
|
|
|
List<V1PodCondition> conditions = pod.getStatus().getConditions(); |
|
|
|
if (conditions != null) { |
|
|
|
for (V1PodCondition condition : conditions) { |
|
|
|
if (!Constant.Ready.equals(condition.getType())) { |
|
|
|
podReady = false; |
|
|
|
if (Constant.Ready.equals(condition.getType()) && Constant.True.equals(condition.getStatus())) { |
|
|
|
podReady = true; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|