This commit is contained in:
Zoltan Kiss 2019-10-14 18:16:32 +01:00
parent 4a70ca0510
commit 4233353703

View File

@ -170,10 +170,10 @@ public class KubesTest extends DefaultTask {
// remove pod if exists
PodResource<Pod, DoneablePod> oldPod = client.pods().inNamespace(namespace).withName(podName);
if (oldPod.get() != null) {
getLogger().lifecycle("deleting pod: $podName");
getLogger().lifecycle("deleting pod: {}", podName);
oldPod.delete();
while (oldPod.get() != null) {
getLogger().info("waiting for pod $podName to be removed");
getLogger().info("waiting for pod {} to be removed", podName);
Thread.sleep(1000);
}
}