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;
}
Aggregations