Class V1FileKeySelector
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1FileKeySelector
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1FileKeySelector
extends Object
FileKeySelector selects a key of the env file.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKey()The key within the env file.Specify whether the file or its key must be defined.getPath()The path within the volume from which to select the file.The name of the volume mount containing the env file.inthashCode()Set key in a chainable fashion.Set optional in a chainable fashion.Set path in a chainable fashion.voidSet the key property valuevoidsetOptional(Boolean optional) Set the optional property valuevoidSet the path property valuevoidsetVolumeName(String volumeName) Set the volumeName property valuetoString()volumeName(String volumeName) Set volumeName in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_KEY
- See Also:
-
JSON_PROPERTY_PATH
- See Also:
-
JSON_PROPERTY_VOLUME_NAME
- See Also:
-
JSON_PROPERTY_OPTIONAL
- See Also:
-
-
Constructor Details
-
V1FileKeySelector
-
-
Method Details
-
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.- Returns:
- the key property value
-
setKey
-
key
Set key in a chainable fashion.- Returns:
- The same instance of V1FileKeySelector for chaining.
-
getPath
The path within the volume from which to select the file. Must be relative and may not contain the '..' path or start with '..'.- Returns:
- the path property value
-
setPath
Set the path property value- Parameters:
path- property value to set
-
path
Set path in a chainable fashion.- Returns:
- The same instance of V1FileKeySelector for chaining.
-
getVolumeName
The name of the volume mount containing the env file.- Returns:
- the volumeName property value
-
setVolumeName
Set the volumeName property value- Parameters:
volumeName- property value to set
-
volumeName
Set volumeName in a chainable fashion.- Returns:
- The same instance of V1FileKeySelector for chaining.
-
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.- Returns:
- the optional property value
-
setOptional
Set the optional property value- Parameters:
optional- property value to set
-
optional
Set optional in a chainable fashion.- Returns:
- The same instance of V1FileKeySelector for chaining.
-
equals
-
hashCode
-
toString
-