case class ExecAction(command: Optional[Vector[String]] = Optional.Absent) extends Product with Serializable
ExecAction describes a "run in container" action.
- 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.
- Alphabetic
- By Inheritance
- ExecAction
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ExecAction(command: Optional[Vector[String]] = Optional.Absent)
- 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.
Value Members
- val command: Optional[Vector[String]]
-
def
getCommand: IO[K8sFailure, Vector[String]]
Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem.
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.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.