package kubecaml

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

Env_var represents an environment variable present in a Container.

type t
val to_yojson : t -> Yojson.Safe.t
val make : ?value_from:Kubernetes.Definitions.Api.Core.V1.Env_var_source.t -> ?value:string -> name:string -> unit -> t
val name : t -> string

Name of the environment variable. Must be a C_identifier.

val value : t -> string option

Variable references $(var_name) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(var_name) syntax can be escaped with a double $$, ie: $$(var_name). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".

Source for the environment variable's value. Cannot be used if value is not empty.

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