Class V1CSIVolumeSource

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1CSIVolumeSource

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") 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(String driver)
  • Method Details

    • 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:
      the driver property value
    • setDriver

      public void setDriver(String driver)
      Set the driver property value
    • driver

      public V1CSIVolumeSource driver(String driver)
      Set driver in a chainable fashion.
      Returns:
      The same instance of V1CSIVolumeSource for chaining.
    • getFsType

      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:
      the fsType property value
    • setFsType

      public void setFsType(String fsType)
      Set the fsType property value
    • fsType

      public V1CSIVolumeSource fsType(String fsType)
      Set fsType in a chainable fashion.
      Returns:
      The same instance of V1CSIVolumeSource for chaining.
    • getNodePublishSecretRef

      public V1LocalObjectReference getNodePublishSecretRef()
      Returns:
      the nodePublishSecretRef property value
    • setNodePublishSecretRef

      public void setNodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef)
      Set the nodePublishSecretRef property value
    • nodePublishSecretRef

      public V1CSIVolumeSource nodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef)
      Set nodePublishSecretRef in a chainable fashion.
      Returns:
      The same instance of V1CSIVolumeSource for chaining.
    • getReadOnly

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

      public void setReadOnly(Boolean readOnly)
      Set the readOnly property value
    • readOnly

      public V1CSIVolumeSource readOnly(Boolean readOnly)
      Set readOnly in a chainable fashion.
      Returns:
      The same instance of V1CSIVolumeSource for chaining.
    • getVolumeAttributes

      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:
      the volumeAttributes property value
    • setVolumeAttributes

      public void setVolumeAttributes(Map<String,String> volumeAttributes)
      Set the volumeAttributes property value
    • volumeAttributes

      public V1CSIVolumeSource volumeAttributes(Map<String,String> volumeAttributes)
      Set volumeAttributes in a chainable fashion.
      Returns:
      The same instance of V1CSIVolumeSource for chaining.
    • putvolumeAttributesItem

      public V1CSIVolumeSource putvolumeAttributesItem(String key, String volumeAttributesItem)
      Set the value for the key for the volumeAttributes map property in a chainable fashion.
      Returns:
      The same instance of V1CSIVolumeSource for chaining.
    • 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