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 Summary
ConstructorsConstructorDescriptionAbstractClientCommand(String name) Default constructor initializing the command name. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidexecute(KubernetesClient kubernetesClient, TestContext context) Executes command with given kubernetes client and test context.protected abstract voidexecute(O operation, TestContext context) Execute the mixed operationprotected abstract Ooperation(KubernetesClient kubernetesClient, TestContext context) Subclasses provide operation to call.Methods inherited from class org.citrusframework.kubernetes.command.AbstractKubernetesCommand
getCommandResult, getLabels, getName, getParameter, getParameters, getResultCallback, getWithoutLabels, hasParameter, label, label, name, namespace, setCommandResult, setParameters, validate, withoutLabel, withoutLabel, withParam
-
Constructor Details
-
AbstractClientCommand
Default constructor initializing the command name.- Parameters:
name-
-
-
Method Details
-
execute
Description copied from interface:KubernetesCommandExecutes command with given kubernetes client and test context. -
execute
Execute the mixed operation- Parameters:
operation-context-
-
operation
Subclasses provide operation to call.- Parameters:
kubernetesClient-context-- Returns:
-