Lifecycle Handler
data class LifecycleHandler(val exec: ExecAction? = null, val httpGet: HTTPGetAction? = null, val sleep: SleepAction? = null, val tcpSocket: TCPSocketAction? = null)
LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.
Constructors
Link copied to clipboard
constructor(exec: ExecAction? = null, httpGet: HTTPGetAction? = null, sleep: SleepAction? = null, tcpSocket: TCPSocketAction? = null)
Properties
Link copied to clipboard
Exec specifies a command to execute in the container.
Link copied to clipboard
HTTPGet specifies an HTTP GET request to perform.
Link copied to clipboard
Sleep represents a duration that the container should sleep.
Link copied to clipboard
Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified.