Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

ehsavoie
Copy link
Contributor

@ehsavoie ehsavoie commented Jun 6, 2024

  • Adding a labels parameter.

Issue: https://issues.redhat.com/browse/WFMP-262

 * Adding a labels parameter.

Issue: https://issues.redhat.com/browse/WFMP-262

Signed-off-by: Emmanuel Hugonnet <[email protected]>
@ehsavoie ehsavoie requested a review from jamezp as a code owner June 6, 2024 17:07
Comment on lines +111 to +112
String WILDFLY_IMAGE_LABELS = "wildfly.image.labels";

Copy link
Member

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.

Comment on lines +100 to +101
@Parameter(property = WILDFLY_IMAGE_LABELS, alias = "labels", required = false)
private List<String> labels = Collections.emptyList();
Copy link
Member

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>&quot;Test description &quot;</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 \
Copy link
Member

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 &quot; 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)
Copy link
Member

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.

@jamezp
Copy link
Member

jamezp commented Jun 6, 2024

I created #545 to get this in. Thank you @ehsavoie!

@jamezp jamezp closed this Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants