Skip to content

Commit

Permalink
Another attempt to solve broken compatibility in fabric8 6.7.1
Browse files Browse the repository at this point in the history
See [1] and [2] for details.
[1] quarkus-qe#803
[2] fabric8io/kubernetes-client#4662
  • Loading branch information
fedinskiy committed Jun 16, 2023
1 parent 3566363 commit 121ad00
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -957,7 +958,9 @@ private boolean doCreateProject(String projectName) {
}

private List<HasMetadata> loadYaml(String template) {
return client.load(new ByteArrayInputStream(template.getBytes())).items();
NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<HasMetadata> load = client
.load(new ByteArrayInputStream(template.getBytes()));
return load.items();
}

private String generateRandomProjectName() {
Expand Down

0 comments on commit 121ad00

Please sign in to comment.