struct
Kubernetes::FileKeySelector
- Kubernetes::FileKeySelector
- Struct
- Value
- Object
Overview
FileKeySelector selects a key of the env file.
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
-
#key : String | Nil
The key within the env file.
-
#key=(key : String | Nil)
The key within the env file.
-
#optional : Bool | Nil
Specify whether the file or its key must be defined.
-
#optional=(optional : Bool | Nil)
Specify whether the file or its key must be defined.
-
#path : String | Nil
The path within the volume from which to select the file.
-
#path=(path : String | Nil)
The path within the volume from which to select the file.
-
#volume_name : String | Nil
The name of the volume mount containing the env file.
-
#volume_name=(volume_name : String | Nil)
The name of the volume mount containing the env file.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
The key within the env file. An invalid key will prevent the pod from starting. The keys defined within a source may consist of any printable ASCII characters except '='. During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.
The key within the env file. An invalid key will prevent the pod from starting. The keys defined within a source may consist of any printable ASCII characters except '='. During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.
Specify whether the file or its key must be defined. If the file or key does not exist, then the env var is not published. If optional is set to true and the specified key does not exist, the environment variable will not be set in the Pod's containers. If optional is set to false and the specified key does not exist, an error will be returned during Pod creation.
Specify whether the file or its key must be defined. If the file or key does not exist, then the env var is not published. If optional is set to true and the specified key does not exist, the environment variable will not be set in the Pod's containers. If optional is set to false and the specified key does not exist, an error will be returned during Pod creation.
The path within the volume from which to select the file. Must be relative and may not contain the '..' path or start with '..'.
The path within the volume from which to select the file. Must be relative and may not contain the '..' path or start with '..'.
The name of the volume mount containing the env file.