Package io.fabric8.kubernetes.api.model
Class GlusterfsPersistentVolumeSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.GlusterfsPersistentVolumeSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<GlusterfsPersistentVolumeSourceBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class GlusterfsPersistentVolumeSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<GlusterfsPersistentVolumeSourceBuilder>, KubernetesResource
Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GlusterfsPersistentVolumeSource()No args constructor for use in serializationGlusterfsPersistentVolumeSource(String endpoints, String endpointsNamespace, String path, Boolean readOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GlusterfsPersistentVolumeSourceBuilderedit()Map<String,Object>getAdditionalProperties()StringgetEndpoints()endpoints is the endpoint name that details Glusterfs topology.StringgetEndpointsNamespace()endpointsNamespace is the namespace that contains Glusterfs endpoint.StringgetPath()path is the Glusterfs volume path.BooleangetReadOnly()readOnly here will force the Glusterfs volume to be mounted with read-only permissions.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetEndpoints(String endpoints)endpoints is the endpoint name that details Glusterfs topology.voidsetEndpointsNamespace(String endpointsNamespace)endpointsNamespace is the namespace that contains Glusterfs endpoint.voidsetPath(String path)path is the Glusterfs volume path.voidsetReadOnly(Boolean readOnly)readOnly here will force the Glusterfs volume to be mounted with read-only permissions.GlusterfsPersistentVolumeSourceBuildertoBuilder()
-
-
-
Method Detail
-
getEndpoints
public String getEndpoints()
endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
-
setEndpoints
public void setEndpoints(String endpoints)
endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
-
getEndpointsNamespace
public String getEndpointsNamespace()
endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
-
setEndpointsNamespace
public void setEndpointsNamespace(String endpointsNamespace)
endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
-
getPath
public String getPath()
path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
-
setPath
public void setPath(String path)
path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
-
getReadOnly
public Boolean getReadOnly()
readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
-
setReadOnly
public void setReadOnly(Boolean readOnly)
readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
-
edit
public GlusterfsPersistentVolumeSourceBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<GlusterfsPersistentVolumeSourceBuilder>
-
toBuilder
public GlusterfsPersistentVolumeSourceBuilder toBuilder()
-
-