Class CreatePod
java.lang.Object
org.citrusframework.kubernetes.command.AbstractKubernetesCommand<R,T>
org.citrusframework.kubernetes.command.AbstractClientCommand<io.fabric8.kubernetes.client.dsl.ClientMixedOperation<R,? extends io.fabric8.kubernetes.api.model.KubernetesResourceList,D,? extends io.fabric8.kubernetes.client.dsl.ClientResource<R,D>>,R,T>
org.citrusframework.kubernetes.command.AbstractCreateCommand<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.DoneablePod,CreatePod>
org.citrusframework.kubernetes.command.CreatePod
- All Implemented Interfaces:
KubernetesCommand<io.fabric8.kubernetes.api.model.Pod>
public class CreatePod
extends AbstractCreateCommand<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.DoneablePod,CreatePod>
- Since:
- 2.7
- Author:
- Christoph Deppisch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the containerCommand.Gets the containerName.Gets the containerPort.getImage()Gets the image.io.fabric8.kubernetes.api.model.PodgetPod()Gets the pod.Gets the protocol.Gets the pullPolicy.Gets the restartPolicy.protected io.fabric8.kubernetes.client.dsl.ClientMixedOperation<io.fabric8.kubernetes.api.model.Pod,? extends io.fabric8.kubernetes.api.model.KubernetesResourceList, io.fabric8.kubernetes.api.model.DoneablePod, ? extends io.fabric8.kubernetes.client.dsl.ClientResource<io.fabric8.kubernetes.api.model.Pod, io.fabric8.kubernetes.api.model.DoneablePod>> operation(KubernetesClient kubernetesClient, TestContext context) Subclasses provide operation to call.voidsetContainerCommand(String containerCommand) Sets the containerCommand.voidsetContainerName(String containerName) Sets the containerName.voidsetContainerPort(String containerPort) Sets the containerPort.voidSets the image.setPod(io.fabric8.kubernetes.api.model.Pod pod) Sets the pod.voidsetProtocol(String protocol) Sets the protocol.voidsetPullPolicy(String pullPolicy) Sets the pullPolicy.voidsetRestartPolicy(String restartPolicy) Sets the restartPolicy.protected io.fabric8.kubernetes.api.model.DoneablePodspecify(io.fabric8.kubernetes.api.model.DoneablePod pod, TestContext context) Specify pod to create.Methods inherited from class org.citrusframework.kubernetes.command.AbstractCreateCommand
execute, getResource, getTemplate, getTemplateAsStream, getTemplateResource, setResource, setTemplate, setTemplateResourceMethods inherited from class org.citrusframework.kubernetes.command.AbstractClientCommand
executeMethods 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
-
CreatePod
public CreatePod()Default constructor initializing the command name.
-
-
Method Details
-
operation
protected io.fabric8.kubernetes.client.dsl.ClientMixedOperation<io.fabric8.kubernetes.api.model.Pod,? extends io.fabric8.kubernetes.api.model.KubernetesResourceList, operationio.fabric8.kubernetes.api.model.DoneablePod, ? extends io.fabric8.kubernetes.client.dsl.ClientResource<io.fabric8.kubernetes.api.model.Pod, io.fabric8.kubernetes.api.model.DoneablePod>> (KubernetesClient kubernetesClient, TestContext context) Description copied from class:AbstractClientCommandSubclasses provide operation to call.- Specified by:
operationin classAbstractClientCommand<io.fabric8.kubernetes.client.dsl.ClientMixedOperation<io.fabric8.kubernetes.api.model.Pod,? extends io.fabric8.kubernetes.api.model.KubernetesResourceList, io.fabric8.kubernetes.api.model.DoneablePod, ? extends io.fabric8.kubernetes.client.dsl.ClientResource<io.fabric8.kubernetes.api.model.Pod, io.fabric8.kubernetes.api.model.DoneablePod>>, io.fabric8.kubernetes.api.model.Pod, CreatePod> - Returns:
-
specify
protected io.fabric8.kubernetes.api.model.DoneablePod specify(io.fabric8.kubernetes.api.model.DoneablePod pod, TestContext context) Description copied from class:AbstractCreateCommandSpecify pod to create.- Specified by:
specifyin classAbstractCreateCommand<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.DoneablePod, CreatePod> - Returns:
-
getImage
Gets the image.- Returns:
-
setImage
Sets the image.- Parameters:
image-
-
getContainerName
Gets the containerName.- Returns:
-
setContainerName
Sets the containerName.- Parameters:
containerName-
-
getContainerCommand
Gets the containerCommand.- Returns:
-
setContainerCommand
Sets the containerCommand.- Parameters:
containerCommand-
-
getPullPolicy
Gets the pullPolicy.- Returns:
-
setPullPolicy
Sets the pullPolicy.- Parameters:
pullPolicy-
-
getContainerPort
Gets the containerPort.- Returns:
-
setContainerPort
Sets the containerPort.- Parameters:
containerPort-
-
getProtocol
Gets the protocol.- Returns:
-
setProtocol
Sets the protocol.- Parameters:
protocol-
-
getRestartPolicy
Gets the restartPolicy.- Returns:
-
setRestartPolicy
Sets the restartPolicy.- Parameters:
restartPolicy-
-
getPod
public io.fabric8.kubernetes.api.model.Pod getPod()Gets the pod.- Returns:
-
setPod
Sets the pod.- Parameters:
pod-
-