use of io.fabric8.kubernetes.api.model.ConfigMapVolumeSource in project strimzi by strimzi.
the class AbstractModel method createConfigMapVolume.
protected Volume createConfigMapVolume(String name, String configMapName) {
ConfigMapVolumeSource configMapVolumeSource = new ConfigMapVolumeSourceBuilder().withName(configMapName).build();
Volume volume = new VolumeBuilder().withName(name).withConfigMap(configMapVolumeSource).build();
log.trace("Created configMap Volume named '{}' with source configMap '{}'", name, configMapName);
return volume;
}
Aggregations