Class StorageOSPersistentVolumeSource.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.StorageOSPersistentVolumeSource.Builder
-
- Enclosing class:
- StorageOSPersistentVolumeSource
public static class StorageOSPersistentVolumeSource.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageOSPersistentVolumeSource
build()
StorageOSPersistentVolumeSource.Builder
fsType(java.lang.String fsType)
fsType is the filesystem type to mount.StorageOSPersistentVolumeSource.Builder
readOnly(java.lang.Boolean readOnly)
readOnly defaults to false (read/write).StorageOSPersistentVolumeSource.Builder
secretRef(ObjectReference secretRef)
java.lang.String
toString()
StorageOSPersistentVolumeSource.Builder
volumeName(java.lang.String volumeName)
volumeName is the human-readable name of the StorageOS volume.StorageOSPersistentVolumeSource.Builder
volumeNamespace(java.lang.String volumeNamespace)
volumeNamespace specifies the scope of the volume within StorageOS.
-
-
-
Method Detail
-
fsType
public StorageOSPersistentVolumeSource.Builder fsType(java.lang.String fsType)
fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.- Returns:
this
.
-
readOnly
public StorageOSPersistentVolumeSource.Builder readOnly(java.lang.Boolean readOnly)
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.- Returns:
this
.
-
secretRef
public StorageOSPersistentVolumeSource.Builder secretRef(ObjectReference secretRef)
- Returns:
this
.
-
volumeName
public StorageOSPersistentVolumeSource.Builder volumeName(java.lang.String volumeName)
volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.- Returns:
this
.
-
volumeNamespace
public StorageOSPersistentVolumeSource.Builder volumeNamespace(java.lang.String volumeNamespace)
volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.- Returns:
this
.
-
build
public StorageOSPersistentVolumeSource build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-