use of io.fabric8.maven.core.config.VolumeType in project fabric8-maven-plugin by fabric8io.
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