Class StorageOSVolumeSource.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.StorageOSVolumeSource.Builder
-
- Enclosing class:
- StorageOSVolumeSource
public static class StorageOSVolumeSource.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageOSVolumeSource
build()
StorageOSVolumeSource.Builder
fsType(java.lang.String fsType)
fsType is the filesystem type to mount.StorageOSVolumeSource.Builder
readOnly(java.lang.Boolean readOnly)
readOnly defaults to false (read/write).StorageOSVolumeSource.Builder
secretRef(LocalObjectReference secretRef)
java.lang.String
toString()
StorageOSVolumeSource.Builder
volumeName(java.lang.String volumeName)
volumeName is the human-readable name of the StorageOS volume.StorageOSVolumeSource.Builder
volumeNamespace(java.lang.String volumeNamespace)
volumeNamespace specifies the scope of the volume within StorageOS.
-
-
-
Method Detail
-
fsType
public StorageOSVolumeSource.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 StorageOSVolumeSource.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 StorageOSVolumeSource.Builder secretRef(LocalObjectReference secretRef)
- Returns:
this
.
-
volumeName
public StorageOSVolumeSource.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 StorageOSVolumeSource.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 StorageOSVolumeSource build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-