Search in sources :

Example 1 with ConfigMapVolumeSource

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;
}
Also used : Volume(io.fabric8.kubernetes.api.model.Volume) ConfigMapVolumeSourceBuilder(io.fabric8.kubernetes.api.model.ConfigMapVolumeSourceBuilder) ConfigMapVolumeSource(io.fabric8.kubernetes.api.model.ConfigMapVolumeSource) VolumeBuilder(io.fabric8.kubernetes.api.model.VolumeBuilder)

Aggregations

ConfigMapVolumeSource (io.fabric8.kubernetes.api.model.ConfigMapVolumeSource)1 ConfigMapVolumeSourceBuilder (io.fabric8.kubernetes.api.model.ConfigMapVolumeSourceBuilder)1 Volume (io.fabric8.kubernetes.api.model.Volume)1 VolumeBuilder (io.fabric8.kubernetes.api.model.VolumeBuilder)1