Package io.fabric8.kubernetes.api.model
Class EmptyDirVolumeSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.EmptyDirVolumeSource
-
- All Implemented Interfaces:
Editable<EmptyDirVolumeSourceBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class EmptyDirVolumeSource extends Object implements Editable<EmptyDirVolumeSourceBuilder>, KubernetesResource
Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EmptyDirVolumeSource()No args constructor for use in serializationEmptyDirVolumeSource(String medium, Integer mode, Quantity sizeLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmptyDirVolumeSourceBuilderedit()Map<String,Object>getAdditionalProperties()StringgetMedium()medium represents what type of storage medium should back this directory.IntegergetMode()mode specifies the permission bits for the emptyDir directory, in numeric notation (e.g., 0755, 01777).QuantitygetSizeLimit()Represents an empty directory for a pod.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetMedium(String medium)medium represents what type of storage medium should back this directory.voidsetMode(Integer mode)mode specifies the permission bits for the emptyDir directory, in numeric notation (e.g., 0755, 01777).voidsetSizeLimit(Quantity sizeLimit)Represents an empty directory for a pod.EmptyDirVolumeSourceBuildertoBuilder()
-
-
-
Method Detail
-
getMedium
public String getMedium()
medium represents what type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
-
setMedium
public void setMedium(String medium)
medium represents what type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
-
getMode
public Integer getMode()
mode specifies the permission bits for the emptyDir directory, in numeric notation (e.g., 0755, 01777). Must be a value between 0000 and 01777. If not specified, defaults to 0777. This might be in conflict with other options that affect the file mode, like fsGroup. If fsGroup is specified, the fsGroup permissions will override the mode specified here. This field has no effect on Windows. This field is alpha and requires EmptyDirVolumeMode featuregate to be enabled.
-
setMode
public void setMode(Integer mode)
mode specifies the permission bits for the emptyDir directory, in numeric notation (e.g., 0755, 01777). Must be a value between 0000 and 01777. If not specified, defaults to 0777. This might be in conflict with other options that affect the file mode, like fsGroup. If fsGroup is specified, the fsGroup permissions will override the mode specified here. This field has no effect on Windows. This field is alpha and requires EmptyDirVolumeMode featuregate to be enabled.
-
getSizeLimit
public Quantity getSizeLimit()
Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.
-
setSizeLimit
public void setSizeLimit(Quantity sizeLimit)
Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.
-
edit
public EmptyDirVolumeSourceBuilder edit()
- Specified by:
editin interfaceEditable<EmptyDirVolumeSourceBuilder>
-
toBuilder
public EmptyDirVolumeSourceBuilder toBuilder()
-
-