Class KubernetesClient

java.lang.Object
org.citrusframework.endpoint.AbstractEndpoint
org.citrusframework.kubernetes.client.KubernetesClient
All Implemented Interfaces:
Named, Endpoint, org.citrusframework.messaging.Consumer, org.citrusframework.messaging.Producer, org.citrusframework.messaging.ReplyConsumer, org.citrusframework.messaging.SelectiveConsumer

public class KubernetesClient extends AbstractEndpoint implements org.citrusframework.messaging.Producer, org.citrusframework.messaging.ReplyConsumer
Kubernetes client uses Java kubernetes client implementation for executing kubernetes commands.
Since:
2.7
Author:
Christoph Deppisch
  • Constructor Details

    • KubernetesClient

      public KubernetesClient()
      Default constructor initializing endpoint configuration.
    • KubernetesClient

      public KubernetesClient(KubernetesEndpointConfiguration endpointConfiguration)
      Default constructor using endpoint configuration.
      Parameters:
      endpointConfiguration -
  • Method Details

    • getEndpointConfiguration

      public KubernetesEndpointConfiguration getEndpointConfiguration()
      Specified by:
      getEndpointConfiguration in interface Endpoint
      Overrides:
      getEndpointConfiguration in class AbstractEndpoint
    • send

      public void send(Message message, TestContext context)
      Specified by:
      send in interface org.citrusframework.messaging.Producer
    • receive

      public Message receive(TestContext context)
      Specified by:
      receive in interface org.citrusframework.messaging.Consumer
    • receive

      public Message receive(String selector, TestContext context)
      Specified by:
      receive in interface org.citrusframework.messaging.SelectiveConsumer
    • receive

      public Message receive(TestContext context, long timeout)
      Specified by:
      receive in interface org.citrusframework.messaging.Consumer
    • receive

      public Message receive(String selector, TestContext context, long timeout)
      Specified by:
      receive in interface org.citrusframework.messaging.SelectiveConsumer
    • createProducer

      public org.citrusframework.messaging.Producer createProducer()
      Specified by:
      createProducer in interface Endpoint
    • createConsumer

      public org.citrusframework.messaging.SelectiveConsumer createConsumer()
      Specified by:
      createConsumer in interface Endpoint
    • getClient

      public io.fabric8.kubernetes.client.KubernetesClient getClient()
      Gets the Kubernetes client.
      Returns: