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

io.k8s.api.core.v1.CephFSVolumeSource 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 Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.
 */
public class CephFSVolumeSource {
  public List monitors;

  public String path;

  public Boolean readOnly;

  public String secretFile;

  public LocalObjectReference secretRef;

  public String user;

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

  /**
   * path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /
   */
  public CephFSVolumeSource path(String path) {
    this.path = path;
    return this;
  }

  /**
   * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
   */
  public CephFSVolumeSource readOnly(Boolean readOnly) {
    this.readOnly = readOnly;
    return this;
  }

  /**
   * secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
   */
  public CephFSVolumeSource secretFile(String secretFile) {
    this.secretFile = secretFile;
    return this;
  }

  public CephFSVolumeSource secretRef(LocalObjectReference secretRef) {
    this.secretRef = secretRef;
    return this;
  }

  /**
   * user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
   */
  public CephFSVolumeSource user(String user) {
    this.user = user;
    return this;
  }

  public static CephFSVolumeSource cephFSVolumeSource() {
    return new CephFSVolumeSource();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy