Class V1RBDVolumeSource

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1RBDVolumeSource extends Object
Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.
  • Field Details

  • Constructor Details

    • V1RBDVolumeSource

      public V1RBDVolumeSource(String image, List<@NotNull String> monitors)
  • Method Details

    • getImage

      public String getImage()
      image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      Returns:
      the image property value
    • setImage

      public void setImage(String image)
      Set the image property value
      Parameters:
      image - property value to set
    • image

      public V1RBDVolumeSource image(String image)
      Set image in a chainable fashion.
      Returns:
      The same instance of V1RBDVolumeSource for chaining.
    • getMonitors

      public List<@NotNull String> getMonitors()
      monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      Returns:
      the monitors property value
    • setMonitors

      public void setMonitors(List<@NotNull String> monitors)
      Set the monitors property value
      Parameters:
      monitors - property value to set
    • monitors

      public V1RBDVolumeSource monitors(List<@NotNull String> monitors)
      Set monitors in a chainable fashion.
      Returns:
      The same instance of V1RBDVolumeSource for chaining.
    • addmonitorsItem

      public V1RBDVolumeSource addmonitorsItem(String monitorsItem)
      Add an item to the monitors property in a chainable fashion.
      Returns:
      The same instance of V1RBDVolumeSource for chaining.
    • getFsType

      public String getFsType()
      fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
      Returns:
      the fsType property value
    • setFsType

      public void setFsType(String fsType)
      Set the fsType property value
      Parameters:
      fsType - property value to set
    • fsType

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

      public String getKeyring()
      keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      Returns:
      the keyring property value
    • setKeyring

      public void setKeyring(String keyring)
      Set the keyring property value
      Parameters:
      keyring - property value to set
    • keyring

      public V1RBDVolumeSource keyring(String keyring)
      Set keyring in a chainable fashion.
      Returns:
      The same instance of V1RBDVolumeSource for chaining.
    • getPool

      public String getPool()
      pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      Returns:
      the pool property value
    • setPool

      public void setPool(String pool)
      Set the pool property value
      Parameters:
      pool - property value to set
    • pool

      public V1RBDVolumeSource pool(String pool)
      Set pool in a chainable fashion.
      Returns:
      The same instance of V1RBDVolumeSource for chaining.
    • getReadOnly

      public Boolean getReadOnly()
      readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      Returns:
      the readOnly property value
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
      Set the readOnly property value
      Parameters:
      readOnly - property value to set
    • readOnly

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

      public V1LocalObjectReference getSecretRef()
      Returns:
      the secretRef property value
    • setSecretRef

      public void setSecretRef(V1LocalObjectReference secretRef)
      Set the secretRef property value
      Parameters:
      secretRef - property value to set
    • secretRef

      public V1RBDVolumeSource secretRef(V1LocalObjectReference secretRef)
      Set secretRef in a chainable fashion.
      Returns:
      The same instance of V1RBDVolumeSource for chaining.
    • getUser

      public String getUser()
      user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
      Returns:
      the user property value
    • setUser

      public void setUser(String user)
      Set the user property value
      Parameters:
      user - property value to set
    • user

      public V1RBDVolumeSource user(String user)
      Set user in a chainable fashion.
      Returns:
      The same instance of V1RBDVolumeSource 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