Interface KubernetesCommand<R extends io.fabric8.kubernetes.api.model.KubernetesResource>

All Known Implementing Classes:
AbstractClientCommand, AbstractCreateCommand, AbstractDeleteCommand, AbstractGetCommand, AbstractKubernetesCommand, AbstractListCommand, AbstractWatchCommand, CreatePod, CreateService, DeletePod, DeleteService, GetPod, GetService, Info, ListEndpoints, ListEvents, ListNamespaces, ListNodes, ListPods, ListReplicationControllers, ListServices, WatchNamespaces, WatchNodes, WatchPods, WatchReplicationControllers, WatchServices

public interface KubernetesCommand<R extends io.fabric8.kubernetes.api.model.KubernetesResource>
Since:
2.7
Author:
Christoph Deppisch
  • Method Details

    • execute

      void execute(KubernetesClient kubernetesClient, TestContext context)
      Executes command with given kubernetes client and test context.
      Parameters:
      kubernetesClient -
      context -
    • getName

      String getName()
      Gets the Kubernetes command name.
      Returns:
    • getParameters

      Map<String,Object> getParameters()
      Gets the command parameters.
      Returns:
    • validate

      Adds validation callback with command result.
      Parameters:
      callback -
      Returns:
    • getCommandResult

      CommandResult<R> getCommandResult()
      Provides access to this command result if any.
      Returns:
    • getResultCallback

      CommandResultCallback<R> getResultCallback()
      Gets the command result callback.
      Returns:
    • label

      KubernetesCommand<R> label(String key, String value)
      Sets the label parameter.
      Parameters:
      key -
      value -
      Returns:
    • label

      KubernetesCommand<R> label(String key)
      Sets the label parameter.
      Parameters:
      key -
      Returns:
    • namespace

      KubernetesCommand<R> namespace(String key)
      Sets the namespace parameter.
      Parameters:
      key -
      Returns:
    • name

      Sets the name parameter.
      Parameters:
      key -
      Returns:
    • withoutLabel

      KubernetesCommand<R> withoutLabel(String key, String value)
      Sets the without label parameter.
      Parameters:
      key -
      value -
      Returns:
    • withoutLabel

      KubernetesCommand<R> withoutLabel(String key)
      Sets the without label parameter.
      Parameters:
      key -
      Returns: