kubernetes_asyncio.client.models.v1_file_key_selector module
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech
- class kubernetes_asyncio.client.models.v1_file_key_selector.V1FileKeySelector(key=None, optional=None, path=None, volume_name=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- attribute_map = {'key': 'key', 'optional': 'optional', 'path': 'path', 'volume_name': 'volumeName'}
- property key
Gets the key of this V1FileKeySelector. # noqa: E501
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. # noqa: E501
- Returns:
The key of this V1FileKeySelector. # noqa: E501
- Return type:
str
- openapi_types = {'key': 'str', 'optional': 'bool', 'path': 'str', 'volume_name': 'str'}
- property optional
Gets the optional of this V1FileKeySelector. # noqa: E501
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. # noqa: E501
- Returns:
The optional of this V1FileKeySelector. # noqa: E501
- Return type:
bool
- property path
Gets the path of this V1FileKeySelector. # noqa: E501
The path within the volume from which to select the file. Must be relative and may not contain the ‘..’ path or start with ‘..’. # noqa: E501
- Returns:
The path of this V1FileKeySelector. # noqa: E501
- Return type:
str
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model
- property volume_name
Gets the volume_name of this V1FileKeySelector. # noqa: E501
The name of the volume mount containing the env file. # noqa: E501
- Returns:
The volume_name of this V1FileKeySelector. # noqa: E501
- Return type:
str