java.lang.Object
org.apache.camel.quarkus.component.kubernetes.it.KubernetesResource
@Path("/kubernetes")
@ApplicationScoped
public class KubernetesResource
extends Object
-
Field Summary
Fields
(package private) org.apache.camel.ProducerTemplate
-
Constructor Summary
Constructors
-
Method Summary
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
producerTemplate
@Inject
org.apache.camel.ProducerTemplate producerTemplate
-
Constructor Details
-
KubernetesResource
public KubernetesResource()
-
Method Details
-
readPod
@Path("/pod/{namespace}/{podName}")
@GET
@Produces("text/plain")
public String readPod(@PathParam("namespace")
String namespace,
@PathParam("podName")
String podName)
-
createPod
@Path("/pod/{namespace}/{podName}")
@POST
@Produces("text/plain")
public jakarta.ws.rs.core.Response createPod(@PathParam("namespace")
String namespace,
@PathParam("podName")
String podName)
throws Exception
- Throws:
Exception
-
deletePod
@Path("/pod/{namespace}/{podName}")
@DELETE
public jakarta.ws.rs.core.Response deletePod(@PathParam("namespace")
String namespace,
@PathParam("podName")
String podName)