Class ISCSIVolumeSource.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.ISCSIVolumeSource.Builder
-
- Enclosing class:
- ISCSIVolumeSource
public static class ISCSIVolumeSource.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISCSIVolumeSource.Builder
addToPortals(java.lang.String addToPortals)
ISCSIVolumeSource
build()
ISCSIVolumeSource.Builder
chapAuthDiscovery(java.lang.Boolean chapAuthDiscovery)
chapAuthDiscovery defines whether support iSCSI Discovery CHAP authenticationISCSIVolumeSource.Builder
chapAuthSession(java.lang.Boolean chapAuthSession)
chapAuthSession defines whether support iSCSI Session CHAP authenticationISCSIVolumeSource.Builder
clearPortals()
ISCSIVolumeSource.Builder
fsType(java.lang.String fsType)
fsType is the filesystem type of the volume that you want to mount.ISCSIVolumeSource.Builder
initiatorName(java.lang.String initiatorName)
initiatorName is the custom iSCSI Initiator Name.ISCSIVolumeSource.Builder
iqn(@NonNull java.lang.String iqn)
iqn is the target iSCSI Qualified Name.ISCSIVolumeSource.Builder
iscsiInterface(java.lang.String iscsiInterface)
iscsiInterface is the interface Name that uses an iSCSI transport.ISCSIVolumeSource.Builder
lun(@NonNull java.lang.Number lun)
lun represents iSCSI Target Lun number.ISCSIVolumeSource.Builder
portals(java.util.Collection<? extends java.lang.String> portals)
ISCSIVolumeSource.Builder
readOnly(java.lang.Boolean readOnly)
readOnly here will force the ReadOnly setting in VolumeMounts.ISCSIVolumeSource.Builder
secretRef(LocalObjectReference secretRef)
ISCSIVolumeSource.Builder
targetPortal(@NonNull java.lang.String targetPortal)
targetPortal is iSCSI Target Portal.java.lang.String
toString()
-
-
-
Method Detail
-
chapAuthDiscovery
public ISCSIVolumeSource.Builder chapAuthDiscovery(java.lang.Boolean chapAuthDiscovery)
chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication- Returns:
this
.
-
chapAuthSession
public ISCSIVolumeSource.Builder chapAuthSession(java.lang.Boolean chapAuthSession)
chapAuthSession defines whether support iSCSI Session CHAP authentication- Returns:
this
.
-
fsType
public ISCSIVolumeSource.Builder fsType(java.lang.String fsType)
fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi- Returns:
this
.
-
initiatorName
public ISCSIVolumeSource.Builder initiatorName(java.lang.String initiatorName)
initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection.- Returns:
this
.
-
iqn
public ISCSIVolumeSource.Builder iqn(@NonNull @NonNull java.lang.String iqn)
iqn is the target iSCSI Qualified Name.- Returns:
this
.
-
iscsiInterface
public ISCSIVolumeSource.Builder iscsiInterface(java.lang.String iscsiInterface)
iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).- Returns:
this
.
-
lun
public ISCSIVolumeSource.Builder lun(@NonNull @NonNull java.lang.Number lun)
lun represents iSCSI Target Lun number.- Returns:
this
.
-
addToPortals
public ISCSIVolumeSource.Builder addToPortals(java.lang.String addToPortals)
-
portals
public ISCSIVolumeSource.Builder portals(java.util.Collection<? extends java.lang.String> portals)
-
clearPortals
public ISCSIVolumeSource.Builder clearPortals()
-
readOnly
public ISCSIVolumeSource.Builder readOnly(java.lang.Boolean readOnly)
readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.- Returns:
this
.
-
secretRef
public ISCSIVolumeSource.Builder secretRef(LocalObjectReference secretRef)
- Returns:
this
.
-
targetPortal
public ISCSIVolumeSource.Builder targetPortal(@NonNull @NonNull java.lang.String targetPortal)
targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).- Returns:
this
.
-
build
public ISCSIVolumeSource build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-