use of org.eclipse.jkube.kit.config.resource.VolumeType in project jkube by eclipse.
the class PodTemplateHandler method getVolumes.
private List<Volume> getVolumes(ResourceConfig config) {
List<VolumeConfig> volumeConfigs = config.getVolumes();
List<Volume> ret = new ArrayList<>();
if (volumeConfigs != null) {
for (VolumeConfig volumeConfig : volumeConfigs) {
VolumeType type = VolumeType.typeFor(volumeConfig.getType());
if (type != null) {
ret.add(type.fromConfig(volumeConfig));
}
}
}
return ret;
}
Aggregations