Package io.fabric8.kubernetes.api.model
Class FileKeySelector
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.FileKeySelector
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<FileKeySelectorBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class FileKeySelector extends Object implements io.fabric8.kubernetes.api.builder.Editable<FileKeySelectorBuilder>, KubernetesResource
FileKeySelector selects a key of the env file.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileKeySelector()No args constructor for use in serializationFileKeySelector(String key, Boolean optional, String path, String volumeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileKeySelectorBuilderedit()Map<String,Object>getAdditionalProperties()StringgetKey()The key within the env file.BooleangetOptional()Specify whether the file or its key must be defined.StringgetPath()The path within the volume from which to select the file.StringgetVolumeName()The name of the volume mount containing the env file.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetKey(String key)The key within the env file.voidsetOptional(Boolean optional)Specify whether the file or its key must be defined.voidsetPath(String path)The path within the volume from which to select the file.voidsetVolumeName(String volumeName)The name of the volume mount containing the env file.FileKeySelectorBuildertoBuilder()
-
-
-
Method Detail
-
getKey
public String getKey()
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.
-
setKey
public void setKey(String key)
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.
-
getOptional
public Boolean getOptional()
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.
-
setOptional
public void setOptional(Boolean optional)
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.
-
getPath
public String getPath()
The path within the volume from which to select the file. Must be relative and may not contain the '..' path or start with '..'.
-
setPath
public void setPath(String path)
The path within the volume from which to select the file. Must be relative and may not contain the '..' path or start with '..'.
-
getVolumeName
public String getVolumeName()
The name of the volume mount containing the env file.
-
setVolumeName
public void setVolumeName(String volumeName)
The name of the volume mount containing the env file.
-
edit
public FileKeySelectorBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<FileKeySelectorBuilder>
-
toBuilder
public FileKeySelectorBuilder toBuilder()
-
-