struct

Kubernetes::EnvFromSource

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

EnvFromSource represents the source of a set of ConfigMaps or Secrets

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_ref

The ConfigMap to select from

Source
config_map_ref=(config_map_ref : ConfigMapEnvSource | Nil)

The ConfigMap to select from

Source
prefix

Optional text to prepend to the name of each environment variable. May consist of any printable ASCII characters except '='.

Source
prefix=(prefix : String | Nil)

Optional text to prepend to the name of each environment variable. May consist of any printable ASCII characters except '='.

Source
secret_ref

The Secret to select from

Source
secret_ref=(secret_ref : SecretEnvSource | Nil)

The Secret to select from

Source

Macros

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

Helper macro for defining fields with automatic camelCase conversion

Source