From 121ad0061c19587d52ebf93ad8488669797c5c34 Mon Sep 17 00:00:00 2001 From: Fedor Dudinskiy Date: Fri, 16 Jun 2023 17:27:20 +0200 Subject: [PATCH] Another attempt to solve broken compatibility in fabric8 6.7.1 See [1] and [2] for details. [1] https://github.com/quarkus-qe/quarkus-test-framework/pull/803 [2] https://github.com/fabric8io/kubernetes-client/pull/4662 --- .../io/quarkus/test/bootstrap/inject/OpenShiftClient.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() {