io.k8s.api.core.v1.CephFSVolumeSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bl-k8s130 Show documentation
Show all versions of bl-k8s130 Show documentation
Programmatic resource management for Kubernetes
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();
}
}