Class CSIVolumeSource

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class CSIVolumeSource
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    Represents a source location of a volume to mount, managed by an external CSI driver
    • Constructor Detail

      • CSIVolumeSource

        public CSIVolumeSource​(@NonNull
                               @NonNull java.lang.String driver,
                               java.lang.String fsType,
                               LocalObjectReference nodePublishSecretRef,
                               java.lang.Boolean readOnly,
                               java.util.Map<java.lang.String,​java.lang.String> volumeAttributes)
      • CSIVolumeSource

        public CSIVolumeSource()
    • Method Detail

      • getDriver

        @NonNull
        public @NonNull java.lang.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.
      • getFsType

        public java.lang.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.
      • getReadOnly

        public java.lang.Boolean getReadOnly()
        readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).
      • getVolumeAttributes

        public java.util.Map<java.lang.String,​java.lang.String> getVolumeAttributes()
        volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.
      • setDriver

        public void setDriver​(@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.
      • setFsType

        public void setFsType​(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.
      • setNodePublishSecretRef

        public void setNodePublishSecretRef​(LocalObjectReference nodePublishSecretRef)
      • setReadOnly

        public void setReadOnly​(java.lang.Boolean readOnly)
        readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).
      • setVolumeAttributes

        public void setVolumeAttributes​(java.util.Map<java.lang.String,​java.lang.String> volumeAttributes)
        volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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