@Test public void should_materialize_file_content_from_annotation() { new Expectations() { {{ context.getConfiguration(); result = new Configuration.Builder() .resource(new ResourceConfig()) .build(); }} }; final ConfigMapEnricher configMapEnricher = new ConfigMapEnricher(context); final KubernetesListBuilder builder = new KubernetesListBuilder(); builder.addToConfigMapItems(createBaseConfigMap()); configMapEnricher.create(PlatformMode.kubernetes, builder); final ConfigMap configMap = (ConfigMap) builder.buildFirstItem(); final Map<String, String> data = configMap.getData(); assertThat(data) .containsKey("test-application.properties"); final Map<String, String> annotations = configMap.getMetadata().getAnnotations(); assertThat(annotations) .isEmpty(); }
@Override public void create(PlatformMode platformMode, KubernetesListBuilder builder) { addAnnotations(builder); addConfigMapFromXmlConfigurations(builder); }
ConfigMapEnricher extends BaseEnricher { @Override public void create(PlatformMode platformMode, KubernetesListBuilder builder) { addAnnotations(builder); addConfigMapFromXmlConfigurations(builder); } }
ConfigMapEnricher extends BaseEnricher { @Override public void create(PlatformMode platformMode, KubernetesListBuilder builder) { addAnnotations(builder); addConfigMapFromXmlConfigurations(builder); } ConfigMapEnricher(MavenEnricherContext enricherContext); }
ConfigMapEnricher extends BaseEnricher { @Override public void create(PlatformMode platformMode, KubernetesListBuilder builder) { addAnnotations(builder); addConfigMapFromXmlConfigurations(builder); } ConfigMapEnricher(MavenEnricherContext enricherContext); @Override void create(PlatformMode platformMode, KubernetesListBuilder builder); }
ConfigMapEnricher extends BaseEnricher { @Override public void create(PlatformMode platformMode, KubernetesListBuilder builder) { addAnnotations(builder); addConfigMapFromXmlConfigurations(builder); } ConfigMapEnricher(MavenEnricherContext enricherContext); @Override void create(PlatformMode platformMode, KubernetesListBuilder builder);  }