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

Add ImageUtil class #975

Merged
merged 1 commit into from
Dec 10, 2023
Merged

Add ImageUtil class #975

merged 1 commit into from
Dec 10, 2023

Conversation

gtroitsk
Copy link
Member

@gtroitsk gtroitsk commented Dec 7, 2023

Summary

Retrieves image name and version from Maven property. This util class primarily will be used in TS.
It is not included in any test in FW.

Please check the relevant options

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Dependency update
  • Refactoring
  • Breaking change (fix or feature that would cause existing functionality to change)
  • This change requires a documentation update
  • This change requires execution against OCP (use run tests phrase in comment)

Checklist:

  • Example scenarios has been updated / added
  • Methods and classes used in PR scenarios are meaningful
  • Commits are well encapsulated and follow the best practices

public final class ImageUtil {

private static final String COMMA = ":";
private static final Map<String, String[]> PROPERTY_TO_IMAGE = new HashMap<>();
Copy link
Member

@michalvavrik michalvavrik Dec 8, 2023

Choose a reason for hiding this comment

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

I'm not sure about upper case snake case for this map, what convention do you follow? I can easily be wrong here.

I thought upper case snake is usually used for constants, and this variable is modified. I don't have strong opinion, feel free to prove me wrong.

Copy link
Member

Choose a reason for hiding this comment

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

considering I wrote same code, let's keep it

Retrieves image name and version from Maven property
Copy link
Member

@michalvavrik michalvavrik left a comment

Choose a reason for hiding this comment

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

LGTM

@gtroitsk gtroitsk merged commit ebfabef into quarkus-qe:main Dec 10, 2023
7 checks passed
@gtroitsk gtroitsk deleted the image-util-class branch December 10, 2023 08:03
This was referenced Dec 12, 2023
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