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