-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow specifying image configuration via Maps. (#360) #1259
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1259 +/- ##
============================================
- Coverage 55.53% 55.45% -0.08%
Complexity 1762 1762
============================================
Files 156 156
Lines 8474 8486 +12
Branches 1302 1304 +2
============================================
Hits 4706 4706
- Misses 3314 3326 +12
Partials 454 454
|
2 similar comments
Codecov Report
@@ Coverage Diff @@
## master #1259 +/- ##
============================================
- Coverage 55.53% 55.45% -0.08%
Complexity 1762 1762
============================================
Files 156 156
Lines 8474 8486 +12
Branches 1302 1304 +2
============================================
Hits 4706 4706
- Misses 3314 3326 +12
Partials 454 454
|
Codecov Report
@@ Coverage Diff @@
## master #1259 +/- ##
============================================
- Coverage 55.53% 55.45% -0.08%
Complexity 1762 1762
============================================
Files 156 156
Lines 8474 8486 +12
Branches 1302 1304 +2
============================================
Hits 4706 4706
- Misses 3314 3326 +12
Partials 454 454
|
Codecov Report
@@ Coverage Diff @@
## master #1259 +/- ##
============================================
- Coverage 55.53% 55.44% -0.09%
Complexity 1763 1763
============================================
Files 156 156
Lines 8474 8487 +13
Branches 1302 1304 +2
============================================
Hits 4706 4706
- Misses 3314 3327 +13
Partials 454 454
|
This allows merging of configuration using the normal Maven behavior. Signed-off-by: Wolfgang Kritzinger <wkritzinger@atlassian.com>
cec1f5a
to
37cfcd1
Compare
Hi @rhuss! Apologies for prodding to get an update here. We're currently running on a fork of this repo and would like to unfork this soon-ish :) Would it be possible for you to have a look at this when it's convenient? Thank you! |
Hi @wkritzinger-atlassian sorry for the long delay. First there were vacations and then tons of other work (unfortunately I'm not able to spend much time for d-m-p these days) I will have a look asap. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a first look the PR looks good to me. Could you please also up date docs/changelog.md to include this change ?
@rhuss No worries! I'll update docs/changelog.md 👍 |
Signed-off-by: Wolfgang Kritzinger <wkritzinger@atlassian.com>
thanks ! |
This allows merging of configuration using the normal Maven behavior.
One such example is the following:
Configuration with these profiles enabled independently would not be possible without
<imagesMap>
, as<images>
is treated as a list. In Maven, lists can only be overridden, appended or merged, and merging relies on the correct number and position of the elements, neither of which can be controlled if your images only exist in profiles.Also see #360 (comment)
I could not find existing unit tests for testing the
images
property onAbstractDockerMojo
so I left them out for now. Please let me know if you feel strongly about adding them.