Package io.fabric8.kubernetes.api.model
Class ExecAction
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.ExecAction
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ExecActionBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ExecAction extends Object implements io.fabric8.kubernetes.api.builder.Editable<ExecActionBuilder>, KubernetesResource
ExecAction describes a "run in container" action.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExecAction()
No args constructor for use in serializationExecAction(List<String> command)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecActionBuilder
edit()
Map<String,Object>
getAdditionalProperties()
List<String>
getCommand()
Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setCommand(List<String> command)
Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem.ExecActionBuilder
toBuilder()
-
-
-
Method Detail
-
getCommand
public List<String> getCommand()
Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
-
setCommand
public void setCommand(List<String> command)
Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
-
edit
public ExecActionBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<ExecActionBuilder>
-
toBuilder
public ExecActionBuilder toBuilder()
-
-