struct Kubernetes::EnvVarSource

Overview

EnvVarSource represents a source for the value of an EnvVar.

Included Modules

Defined in:

generated/models/io_k8s_api_core_v1.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : ::JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : ::JSON::PullParser) #

def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

Macro Detail

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

Helper macro for defining fields with automatic camelCase conversion


Instance Method Detail

def config_map_key_ref : ConfigMapKeySelector | Nil #

Selects a key of a ConfigMap.


def config_map_key_ref=(config_map_key_ref : ConfigMapKeySelector | Nil) #

Selects a key of a ConfigMap.


def 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.


def 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.


def file_key_ref : FileKeySelector | Nil #

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


def file_key_ref=(file_key_ref : FileKeySelector | Nil) #

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


def 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.


def 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.


def secret_key_ref : SecretKeySelector | Nil #

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


def secret_key_ref=(secret_key_ref : SecretKeySelector | Nil) #

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