Class ISCSIVolumeSource.Builder

  • Enclosing class:
    ISCSIVolumeSource

    public static class ISCSIVolumeSource.Builder
    extends java.lang.Object
    • 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.
      • readOnly

        public ISCSIVolumeSource.Builder readOnly​(java.lang.Boolean readOnly)
        readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.
        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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object