Class CSIVolumeSource.Builder

  • Enclosing class:
    CSIVolumeSource

    public static class CSIVolumeSource.Builder
    extends java.lang.Object
    • Method Detail

      • driver

        public CSIVolumeSource.Builder driver​(@NonNull
                                              @NonNull java.lang.String driver)
        driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.
        Returns:
        this.
      • fsType

        public CSIVolumeSource.Builder fsType​(java.lang.String fsType)
        fsType to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.
        Returns:
        this.
      • readOnly

        public CSIVolumeSource.Builder readOnly​(java.lang.Boolean readOnly)
        readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).
        Returns:
        this.
      • putInVolumeAttributes

        public CSIVolumeSource.Builder putInVolumeAttributes​(java.lang.String putInVolumeAttributesKey,
                                                             java.lang.String putInVolumeAttributesValue)
      • volumeAttributes

        public CSIVolumeSource.Builder volumeAttributes​(java.util.Map<? extends java.lang.String,​? extends java.lang.String> volumeAttributes)
      • toString

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