package kubecaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Exec_action describes a "run in container" action.

type t
val to_yojson : t -> Yojson.Safe.t
val make : ?command:string list -> unit -> t
val command : t -> string list option

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.

module Object : Object.S with type value := t