Class StorageOSVolumeSource.Builder

  • Enclosing class:
    StorageOSVolumeSource

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

      • fsType

        public StorageOSVolumeSource.Builder fsType​(java.lang.String fsType)
        fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
        Returns:
        this.
      • readOnly

        public StorageOSVolumeSource.Builder readOnly​(java.lang.Boolean readOnly)
        readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
        Returns:
        this.
      • volumeName

        public StorageOSVolumeSource.Builder volumeName​(java.lang.String volumeName)
        volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.
        Returns:
        this.
      • volumeNamespace

        public StorageOSVolumeSource.Builder volumeNamespace​(java.lang.String volumeNamespace)
        volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.
        Returns:
        this.
      • toString

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