All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.k8s.api.core.v1.RBDPersistentVolumeSource Maven / Gradle / Ivy

There is a newer version: 1.30.4
Show newest version
package io.k8s.api.core.v1;

import java.lang.Boolean;
import java.lang.String;
import java.util.List;

/**
 * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.
 */
public class RBDPersistentVolumeSource {
  public String fsType;

  public String image;

  public String keyring;

  public List monitors;

  public String pool;

  public Boolean readOnly;

  public SecretReference secretRef;

  public String user;

  /**
   * 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
   */
  public RBDPersistentVolumeSource fsType(String fsType) {
    this.fsType = fsType;
    return this;
  }

  /**
   * image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
   */
  public RBDPersistentVolumeSource image(String image) {
    this.image = image;
    return this;
  }

  /**
   * 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
   */
  public RBDPersistentVolumeSource keyring(String keyring) {
    this.keyring = keyring;
    return this;
  }

  /**
   * monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
   */
  public RBDPersistentVolumeSource monitors(List monitors) {
    this.monitors = monitors;
    return this;
  }

  /**
   * pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
   */
  public RBDPersistentVolumeSource pool(String pool) {
    this.pool = pool;
    return this;
  }

  /**
   * 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
   */
  public RBDPersistentVolumeSource readOnly(Boolean readOnly) {
    this.readOnly = readOnly;
    return this;
  }

  public RBDPersistentVolumeSource secretRef(SecretReference secretRef) {
    this.secretRef = secretRef;
    return this;
  }

  /**
   * user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
   */
  public RBDPersistentVolumeSource user(String user) {
    this.user = user;
    return this;
  }

  public static RBDPersistentVolumeSource rBDPersistentVolumeSource() {
    return new RBDPersistentVolumeSource();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy