diff --git a/quarkus-test-openshift/src/main/java/io/quarkus/test/bootstrap/inject/OpenShiftClient.java b/quarkus-test-openshift/src/main/java/io/quarkus/test/bootstrap/inject/OpenShiftClient.java index c6844e1c0..ebd539bed 100644 --- a/quarkus-test-openshift/src/main/java/io/quarkus/test/bootstrap/inject/OpenShiftClient.java +++ b/quarkus-test-openshift/src/main/java/io/quarkus/test/bootstrap/inject/OpenShiftClient.java @@ -53,6 +53,7 @@ import io.fabric8.kubernetes.client.CustomResource; import io.fabric8.kubernetes.client.KubernetesClientBuilder; import io.fabric8.kubernetes.client.dsl.ContainerResource; +import io.fabric8.kubernetes.client.dsl.NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable; import io.fabric8.kubernetes.client.dsl.PodResource; import io.fabric8.kubernetes.client.utils.Serialization; import io.fabric8.openshift.api.model.DeploymentConfig; @@ -957,7 +958,9 @@ private boolean doCreateProject(String projectName) { } private List loadYaml(String template) { - return client.load(new ByteArrayInputStream(template.getBytes())).items(); + NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable load = client + .load(new ByteArrayInputStream(template.getBytes())); + return load.items(); } private String generateRandomProjectName() {