struct

Kubernetes::EnvVarSource

Inherits YAML::Serializable < JSON::Serializable < Kubernetes::Serializable < Struct < Value < Object

EnvVarSource represents a source for the value of an EnvVar.

Constructors

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)

Instance methods

config_map_key_ref

Selects a key of a ConfigMap.

Source
config_map_key_ref=(config_map_key_ref : ConfigMapKeySelector | Nil)

Selects a key of a ConfigMap.

Source
field_ref

Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels['<KEY>'], metadata.annotations['<KEY>'], spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.

Source
field_ref=(field_ref : ObjectFieldSelector | Nil)

Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels['<KEY>'], metadata.annotations['<KEY>'], spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.

Source
file_key_ref

FileKeyRef selects a key of the env file. Requires the EnvFiles feature gate to be enabled.

Source
file_key_ref=(file_key_ref : FileKeySelector | Nil)

FileKeyRef selects a key of the env file. Requires the EnvFiles feature gate to be enabled.

Source
resource_field_ref

Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.

Source
resource_field_ref=(resource_field_ref : ResourceFieldSelector | Nil)

Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.

Source
secret_key_ref

Selects a key of a secret in the pod's namespace

Source
secret_key_ref=(secret_key_ref : SecretKeySelector | Nil)

Selects a key of a secret in the pod's namespace

Source

Macros

field(name, type = nil, **options, &block)

Helper macro for defining fields with automatic camelCase conversion

Source