Search in sources :

Example 1 with V1PersistentVolumeClaimVolumeSource

use of io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource in project twister2 by DSC-SPIDAL.

the class RequestObjectBuilder method createPersistentVolume.

public static V1Volume createPersistentVolume(String claimName) {
    V1Volume persistentVolume = new V1Volume();
    persistentVolume.setName(KubernetesConstants.PERSISTENT_VOLUME_NAME);
    V1PersistentVolumeClaimVolumeSource perVolSource = new V1PersistentVolumeClaimVolumeSource();
    perVolSource.setClaimName(claimName);
    persistentVolume.setPersistentVolumeClaim(perVolSource);
    return persistentVolume;
}
Also used : V1Volume(io.kubernetes.client.openapi.models.V1Volume) V1PersistentVolumeClaimVolumeSource(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource)

Aggregations

V1PersistentVolumeClaimVolumeSource (io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource)1 V1Volume (io.kubernetes.client.openapi.models.V1Volume)1