-
Notifications
You must be signed in to change notification settings - Fork 87
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
[WFMP-262]: Allow to add labels to the images. #543
Conversation
* Adding a labels parameter. Issue: https://issues.redhat.com/browse/WFMP-262 Signed-off-by: Emmanuel Hugonnet <[email protected]>
String WILDFLY_IMAGE_LABELS = "wildfly.image.labels"; | ||
|
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.
Not a blocker, but this doesn't need to be here if you'd rather it not be. I had originally created this file for shared properties to ensure the values stay the same, but this is likely not to be shared.
@Parameter(property = WILDFLY_IMAGE_LABELS, alias = "labels", required = false) | ||
private List<String> labels = Collections.emptyList(); |
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.
Should this be a Map<String, String>
instead so it can be defined like:
<labels>
<version>1.0</version>
<description>"Test description "</description>
</labels>
Also the alias and required aren't really needed.
@@ -29,6 +29,11 @@ | |||
<image> | |||
<group>wildfly-maven-plugin</group> | |||
</image> | |||
<labels> | |||
<label>version="1.0"</label> | |||
<label>description="This text illustrates \ |
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.
Minor, but the quotes should be "
to be valid XML :)
@@ -95,6 +97,9 @@ public class ApplicationImageMojo extends PackageServerMojo { | |||
@Parameter(alias = "image") | |||
private ApplicationImageInfo image; | |||
|
|||
@Parameter(property = WILDFLY_IMAGE_LABELS, alias = "labels", required = false) |
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.
This needs some Java doc for the plugin documentation. In that it needs a @since 5.0.2
.
Issue: https://issues.redhat.com/browse/WFMP-262