use of io.fabric8.kubernetes.api.model.VolumeBuilder in project che by eclipse.
the class OpenShiftConnector method getVolumesFrom.
private List<Volume> getVolumesFrom(String[] volumes, String workspaceID) {
List<Volume> vs = new ArrayList<>();
for (String volume : volumes) {
String hostPath = volume.split(":", 3)[0];
String volumeName = getVolumeName(volume);
Volume v = new VolumeBuilder().withNewHostPath(hostPath).withName("ws-" + workspaceID + "-" + volumeName).build();
vs.add(v);
}
return vs;
}
Aggregations