Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Added support to choose configMap name #1636

Merged
merged 10 commits into from
May 24, 2019
Merged

Added support to choose configMap name #1636

merged 10 commits into from
May 24, 2019

Conversation

h3nrique
Copy link
Contributor

@h3nrique h3nrique commented May 15, 2019

Fixes #1634

@rohanKanojia rohanKanojia added the pr/wip Work in Progress, do not merge label May 15, 2019
import java.util.ArrayList;
import java.util.List;

public class ConfigMap {

@Parameter
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that is required.

@rohanKanojia
Copy link
Member

strange, looking at code I think it should work. I would pull your branch and test on my machine.

@rohanKanojia
Copy link
Member

Oops, a test is failing. Maybe that can give us an idea if we're missing something.

@h3nrique
Copy link
Contributor Author

h3nrique commented May 15, 2019 via email

@h3nrique
Copy link
Contributor Author

h3nrique commented May 15, 2019 via email

@codecov
Copy link

codecov bot commented May 15, 2019

Codecov Report

Merging #1636 into master will decrease coverage by 0.03%.
The diff coverage is 12.5%.

@@             Coverage Diff              @@
##             master    #1636      +/-   ##
============================================
- Coverage     34.81%   34.77%   -0.04%     
  Complexity     1121     1121              
============================================
  Files           186      186              
  Lines         10309    10314       +5     
  Branches       1679     1680       +1     
============================================
- Hits           3589     3587       -2     
- Misses         6299     6305       +6     
- Partials        421      422       +1

@rohanKanojia
Copy link
Member

@h3nrique : Works for me for this configuration:

                        <configMap>
                          <name>rohan-configmap</name>
                          <entries>
                            <entry>
                              <name>A</name>
                              <value>B</value>
                            </entry>
                           </entries>
                        </configMap>

What configuration were you trying for which it wasn't working? Could you please share?
Screenshot from 2019-05-17 21-15-15

@h3nrique
Copy link
Contributor Author

@rohanKanojia I've identified that when uses variable (ex: ${project.artifactId}) the configmap It's not created.

I'm working in this here.

@rohanKanojia
Copy link
Member

@lordofthejars : @paoloantinori is trying to create configmap using this configuration:

<configuration>
    <resources>
        <configMap>
            <name>${project.artifactId}</name>
            <entries>
                <entry>
                    <file>src/main/resources/application-openshift.properties</file>
                </entry>
            </entries>
        </configMap>
    </resources>
</configuration>

but it doesn't seem to be getting picked up. Could you please take a look into this if you have time? Is this configuration supported?

@rohanKanojia
Copy link
Member

@h3nrique : Is it working now for you? for your application.properties use case?

@h3nrique
Copy link
Contributor Author

h3nrique commented May 22, 2019 via email

@rohanKanojia
Copy link
Member

@h3nrique : cool, can you please mark this draft ready for merge? I think we can merge it then 👍

@h3nrique h3nrique marked this pull request as ready for review May 22, 2019 16:39
@rohanKanojia
Copy link
Member

@h3nrique : Sorry, I forgot to tell you. Could you please add a line to CHANGELOG.md regarding this?

@rohanKanojia rohanKanojia added pr/changelog-entry-please Please add a changelog entry for this PR and removed pr/wip Work in Progress, do not merge labels May 24, 2019
@rohanKanojia rohanKanojia requested a review from devang-gaur May 24, 2019 11:23
@rohanKanojia rohanKanojia removed the pr/changelog-entry-please Please add a changelog entry for this PR label May 24, 2019
@rohanKanojia rohanKanojia merged commit 58ec5fc into fabric8io:master May 24, 2019
@sleipnir
Copy link

Great this is exactly what I need

rohanKanojia added a commit to rohanKanojia/jshift-kit that referenced this pull request Jun 5, 2019
lordofthejars pushed a commit to jshiftio/jshift-kit that referenced this pull request Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enrichers to configmap
4 participants