io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bl-k8s131 Show documentation
Show all versions of bl-k8s131 Show documentation
Programmatic resource management for Kubernetes
The newest version!
package io.k8s.api.core.v1;
import java.lang.Boolean;
import java.lang.String;
/**
* PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).
*/
public class PersistentVolumeClaimVolumeSource {
public String claimName;
public Boolean readOnly;
/**
* claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
*/
public PersistentVolumeClaimVolumeSource claimName(String claimName) {
this.claimName = claimName;
return this;
}
/**
* readOnly Will force the ReadOnly setting in VolumeMounts. Default false.
*/
public PersistentVolumeClaimVolumeSource readOnly(Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
public static PersistentVolumeClaimVolumeSource persistentVolumeClaimVolumeSource() {
return new PersistentVolumeClaimVolumeSource();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy