Class V1CSIVolumeSource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1CSIVolumeSource extends Object
Represents a source location of a volume to mount, managed by an external CSI driver
  • Field Details

  • Constructor Details

    • V1CSIVolumeSource

      public V1CSIVolumeSource()
  • Method Details

    • driver

      public V1CSIVolumeSource driver(String driver)
    • getDriver

      public String getDriver()
      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:
      driver
    • setDriver

      public void setDriver(String driver)
    • fsType

      public V1CSIVolumeSource fsType(String fsType)
    • getFsType

      @Nullable public String getFsType()
      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:
      fsType
    • setFsType

      public void setFsType(String fsType)
    • nodePublishSecretRef

      public V1CSIVolumeSource nodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef)
    • getNodePublishSecretRef

      @Nullable public V1LocalObjectReference getNodePublishSecretRef()
      Get nodePublishSecretRef
      Returns:
      nodePublishSecretRef
    • setNodePublishSecretRef

      public void setNodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef)
    • readOnly

      public V1CSIVolumeSource readOnly(Boolean readOnly)
    • getReadOnly

      @Nullable public Boolean getReadOnly()
      readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).
      Returns:
      readOnly
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
    • volumeAttributes

      public V1CSIVolumeSource volumeAttributes(Map<String,String> volumeAttributes)
    • putVolumeAttributesItem

      public V1CSIVolumeSource putVolumeAttributesItem(String key, String volumeAttributesItem)
    • getVolumeAttributes

      @Nullable public Map<String,String> getVolumeAttributes()
      volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.
      Returns:
      volumeAttributes
    • setVolumeAttributes

      public void setVolumeAttributes(Map<String,String> volumeAttributes)
    • 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