Class V1ISCSIVolumeSource

java.lang.Object
io.kubernetes.client.openapi.models.V1ISCSIVolumeSource

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T21:37:40.170033Z[Etc/UTC]") public class V1ISCSIVolumeSource extends Object
Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.
  • Field Details

  • Constructor Details

    • V1ISCSIVolumeSource

      public V1ISCSIVolumeSource()
  • Method Details

    • chapAuthDiscovery

      public V1ISCSIVolumeSource chapAuthDiscovery(Boolean chapAuthDiscovery)
    • getChapAuthDiscovery

      @Nullable public Boolean getChapAuthDiscovery()
      chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
      Returns:
      chapAuthDiscovery
    • setChapAuthDiscovery

      public void setChapAuthDiscovery(Boolean chapAuthDiscovery)
    • chapAuthSession

      public V1ISCSIVolumeSource chapAuthSession(Boolean chapAuthSession)
    • getChapAuthSession

      @Nullable public Boolean getChapAuthSession()
      chapAuthSession defines whether support iSCSI Session CHAP authentication
      Returns:
      chapAuthSession
    • setChapAuthSession

      public void setChapAuthSession(Boolean chapAuthSession)
    • fsType

      public V1ISCSIVolumeSource fsType(String fsType)
    • getFsType

      @Nullable 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
      Returns:
      fsType
    • setFsType

      public void setFsType(String fsType)
    • initiatorName

      public V1ISCSIVolumeSource initiatorName(String initiatorName)
    • getInitiatorName

      @Nullable 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.
      Returns:
      initiatorName
    • setInitiatorName

      public void setInitiatorName(String initiatorName)
    • iqn

      public V1ISCSIVolumeSource iqn(String iqn)
    • getIqn

      public String getIqn()
      iqn is the target iSCSI Qualified Name.
      Returns:
      iqn
    • setIqn

      public void setIqn(String iqn)
    • iscsiInterface

      public V1ISCSIVolumeSource iscsiInterface(String iscsiInterface)
    • getIscsiInterface

      @Nullable public String getIscsiInterface()
      iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).
      Returns:
      iscsiInterface
    • setIscsiInterface

      public void setIscsiInterface(String iscsiInterface)
    • lun

      public V1ISCSIVolumeSource lun(Integer lun)
    • getLun

      public Integer getLun()
      lun represents iSCSI Target Lun number.
      Returns:
      lun
    • setLun

      public void setLun(Integer lun)
    • portals

      public V1ISCSIVolumeSource portals(List<String> portals)
    • addPortalsItem

      public V1ISCSIVolumeSource addPortalsItem(String portalsItem)
    • getPortals

      @Nullable 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).
      Returns:
      portals
    • setPortals

      public void setPortals(List<String> portals)
    • readOnly

      public V1ISCSIVolumeSource readOnly(Boolean readOnly)
    • getReadOnly

      @Nullable public Boolean getReadOnly()
      readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.
      Returns:
      readOnly
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
    • secretRef

      public V1ISCSIVolumeSource secretRef(V1LocalObjectReference secretRef)
    • getSecretRef

      @Nullable public V1LocalObjectReference getSecretRef()
      Get secretRef
      Returns:
      secretRef
    • setSecretRef

      public void setSecretRef(V1LocalObjectReference secretRef)
    • targetPortal

      public V1ISCSIVolumeSource targetPortal(String targetPortal)
    • 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).
      Returns:
      targetPortal
    • setTargetPortal

      public void setTargetPortal(String targetPortal)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object