Package io.fabric8.kubernetes.api.model
Class ISCSIVolumeSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.ISCSIVolumeSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ISCSIVolumeSourceBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ISCSIVolumeSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<ISCSIVolumeSourceBuilder>, KubernetesResource
Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ISCSIVolumeSource()
No args constructor for use in serializationISCSIVolumeSource(Boolean chapAuthDiscovery, Boolean chapAuthSession, String fsType, String initiatorName, String iqn, String iscsiInterface, Integer lun, List<String> portals, Boolean readOnly, LocalObjectReference secretRef, String targetPortal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISCSIVolumeSourceBuilder
edit()
Map<String,Object>
getAdditionalProperties()
Boolean
getChapAuthDiscovery()
chapAuthDiscovery defines whether support iSCSI Discovery CHAP authenticationBoolean
getChapAuthSession()
chapAuthSession defines whether support iSCSI Session CHAP authenticationString
getFsType()
fsType is the filesystem type of the volume that you want to mount.String
getInitiatorName()
initiatorName is the custom iSCSI Initiator Name.String
getIqn()
iqn is the target iSCSI Qualified Name.String
getIscsiInterface()
iscsiInterface is the interface Name that uses an iSCSI transport.Integer
getLun()
lun represents iSCSI Target Lun number.List<String>
getPortals()
portals is the iSCSI Target Portal List.Boolean
getReadOnly()
readOnly here will force the ReadOnly setting in VolumeMounts.LocalObjectReference
getSecretRef()
Represents an ISCSI disk.String
getTargetPortal()
targetPortal is iSCSI Target Portal.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setChapAuthDiscovery(Boolean chapAuthDiscovery)
chapAuthDiscovery defines whether support iSCSI Discovery CHAP authenticationvoid
setChapAuthSession(Boolean chapAuthSession)
chapAuthSession defines whether support iSCSI Session CHAP authenticationvoid
setFsType(String fsType)
fsType is the filesystem type of the volume that you want to mount.void
setInitiatorName(String initiatorName)
initiatorName is the custom iSCSI Initiator Name.void
setIqn(String iqn)
iqn is the target iSCSI Qualified Name.void
setIscsiInterface(String iscsiInterface)
iscsiInterface is the interface Name that uses an iSCSI transport.void
setLun(Integer lun)
lun represents iSCSI Target Lun number.void
setPortals(List<String> portals)
portals is the iSCSI Target Portal List.void
setReadOnly(Boolean readOnly)
readOnly here will force the ReadOnly setting in VolumeMounts.void
setSecretRef(LocalObjectReference secretRef)
Represents an ISCSI disk.void
setTargetPortal(String targetPortal)
targetPortal is iSCSI Target Portal.ISCSIVolumeSourceBuilder
toBuilder()
-
-
-
Method Detail
-
getChapAuthDiscovery
public Boolean getChapAuthDiscovery()
chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
-
setChapAuthDiscovery
public void setChapAuthDiscovery(Boolean chapAuthDiscovery)
chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
-
getChapAuthSession
public Boolean getChapAuthSession()
chapAuthSession defines whether support iSCSI Session CHAP authentication
-
setChapAuthSession
public void setChapAuthSession(Boolean chapAuthSession)
chapAuthSession defines whether support iSCSI Session CHAP authentication
-
getFsType
public String getFsType()
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
-
setFsType
public void setFsType(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
-
getInitiatorName
public String getInitiatorName()
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.
-
setInitiatorName
public void setInitiatorName(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.
-
getIqn
public String getIqn()
iqn is the target iSCSI Qualified Name.
-
setIqn
public void setIqn(String iqn)
iqn is the target iSCSI Qualified Name.
-
getIscsiInterface
public String getIscsiInterface()
iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).
-
setIscsiInterface
public void setIscsiInterface(String iscsiInterface)
iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).
-
getLun
public Integer getLun()
lun represents iSCSI Target Lun number.
-
setLun
public void setLun(Integer lun)
lun represents iSCSI Target Lun number.
-
getPortals
public List<String> getPortals()
portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
-
setPortals
public void setPortals(List<String> portals)
portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
-
getReadOnly
public Boolean getReadOnly()
readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.
-
setReadOnly
public void setReadOnly(Boolean readOnly)
readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.
-
getSecretRef
public LocalObjectReference getSecretRef()
Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.
-
setSecretRef
public void setSecretRef(LocalObjectReference secretRef)
Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.
-
getTargetPortal
public String getTargetPortal()
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).
-
setTargetPortal
public void setTargetPortal(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).
-
edit
public ISCSIVolumeSourceBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<ISCSIVolumeSourceBuilder>
-
toBuilder
public ISCSIVolumeSourceBuilder toBuilder()
-
-