struct
Kubernetes::EnvVar
- Kubernetes::EnvVar
- Struct
- Value
- Object
Overview
EnvVar represents an environment variable present in a Container.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_core_v1.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : ::JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#name : String | Nil
Name of the environment variable.
-
#name=(name : String | Nil)
Name of the environment variable.
-
#value : String | Nil
Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables.
-
#value=(value : String | Nil)
Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables.
-
#value_from : EnvVarSource | Nil
Source for the environment variable's value.
-
#value_from=(value_from : EnvVarSource | Nil)
Source for the environment variable's value.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
Name of the environment variable. May consist of any printable ASCII characters except '='.
Name of the environment variable. May consist of any printable ASCII characters except '='.
Variable references $(VAR_NAME) are expanded using the previously 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".
Variable references $(VAR_NAME) are expanded using the previously 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(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.
Source for the environment variable's value. Cannot be used if value is not empty.