⚗️ Add blocking

This commit is contained in:
Andreas Dinauer 2025-06-07 11:39:05 +02:00
parent 1e37a5cada
commit 7f675d48f8

View File

@ -8,6 +8,7 @@ import io.fabric8.kubernetes.client.KubernetesClient;
import io.fabric8.kubernetes.client.KubernetesClientBuilder; import io.fabric8.kubernetes.client.KubernetesClientBuilder;
import io.quarkus.runtime.Startup; import io.quarkus.runtime.Startup;
import io.quarkus.security.Authenticated; import io.quarkus.security.Authenticated;
import io.smallrye.common.annotation.Blocking;
import jakarta.annotation.PostConstruct; import jakarta.annotation.PostConstruct;
import jakarta.annotation.security.RolesAllowed; import jakarta.annotation.security.RolesAllowed;
import jakarta.enterprise.context.ApplicationScoped; import jakarta.enterprise.context.ApplicationScoped;
@ -35,6 +36,7 @@ public class PodResource
PodService podService; PodService podService;
@GET @GET
@Blocking
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public List<Pod> getPods(@QueryParam("namespace") String namespace) public List<Pod> getPods(@QueryParam("namespace") String namespace)
{ {