Fix regression: Don't add ConfigMapEnricher to default profile
Only run ConfigMapEnricher when ConfigMapEntries are present in pom
@@ -1005,11 +1005,13 @@ public class ResourceMojo extends AbstractFabric8Mojo {
final Map<String, String> configMapFromConfiguration;
try {
configMapFromConfiguration = createConfigMapFromConfiguration(configMap);
+ if(!configMapFromConfiguration.isEmpty()) {
ConfigMapBuilder element = new ConfigMapBuilder();
element.withNewMetadata().withName("xmlconfig").endMetadata();
element.addToData(configMapFromConfiguration);
builder.addToConfigMapItems(element.build());
+ }
} catch (IOException e) {
throw new IllegalArgumentException(e);
}
