Package org.cdk8s.plus24.k8s
Interface ExecAction
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ExecAction.Jsii$Proxy
@Generated(value="jsii-pacmak/1.79.0 (build b22f628)", date="2023-03-31T02:28:41.793Z") @Stability(Stable) public interface ExecAction extends software.amazon.jsii.JsiiSerializable
ExecAction describes a "run in container" action.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ExecAction.Builder
A builder forExecAction
static class
ExecAction.Jsii$Proxy
An implementation forExecAction
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static ExecAction.Builder
builder()
default 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.
-
-
-
Method Detail
-
getCommand
@Stability(Stable) @Nullable default 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.
-
builder
@Stability(Stable) static ExecAction.Builder builder()
- Returns:
- a
ExecAction.Builder
ofExecAction
-
-