Class AbstractClientCommand<O extends io.fabric8.kubernetes.client.dsl.ClientNonNamespaceOperation,R extends io.fabric8.kubernetes.api.model.KubernetesResource,T extends KubernetesCommand<R>>

java.lang.Object
org.citrusframework.kubernetes.command.AbstractKubernetesCommand<R,T>
org.citrusframework.kubernetes.command.AbstractClientCommand<O,R,T>
All Implemented Interfaces:
KubernetesCommand<R>
Direct Known Subclasses:
AbstractCreateCommand, AbstractDeleteCommand, AbstractGetCommand, AbstractListCommand, AbstractWatchCommand

public abstract class AbstractClientCommand<O extends io.fabric8.kubernetes.client.dsl.ClientNonNamespaceOperation,R extends io.fabric8.kubernetes.api.model.KubernetesResource,T extends KubernetesCommand<R>> extends AbstractKubernetesCommand<R,T>
Since:
2.7
Author:
Christoph Deppisch
  • Constructor Details

    • AbstractClientCommand

      public AbstractClientCommand(String name)
      Default constructor initializing the command name.
      Parameters:
      name -
  • Method Details

    • execute

      public final void execute(KubernetesClient kubernetesClient, TestContext context)
      Description copied from interface: KubernetesCommand
      Executes command with given kubernetes client and test context.
    • execute

      protected abstract void execute(O operation, TestContext context)
      Execute the mixed operation
      Parameters:
      operation -
      context -
    • operation

      protected abstract O operation(KubernetesClient kubernetesClient, TestContext context)
      Subclasses provide operation to call.
      Parameters:
      kubernetesClient -
      context -
      Returns: