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

%g should be resolved to namespace in OpenShift Maven Plugin #910

Conversation

rohanKanojia
Copy link
Member

Description

Right now %g placeholder which corresponds to default image user picks
jkube.image.user property first, if not then project groupId.

Due to a typo in ResourceMojo for DOCKER_IMAGE_USER property, wrong
property was being set in mojo.

Changes regarding changing access modifiers of some fields in ResourceMojo are only done
in order to be able to have them available in OpenShiftResourceMojoTest

Relates to #904

Signed-off-by: Rohan Kumar rohaan@redhat.com

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change
  • Chore (non-breaking change which doesn't affect codebase;
    test, version modification, documentation, etc.)

Checklist

Right now `%g` placeholder which corresponds to default image user picks
`jkube.image.user` property first, if not then project groupId.

Due to a typo in ResourceMojo for DOCKER_IMAGE_USER property, wrong
property was being set in mojo.

Relates to eclipse-jkube#904

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
@sonarcloud
Copy link

sonarcloud bot commented Sep 14, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Sep 14, 2021

Codecov Report

Merging #910 (859587b) into master (e2aa310) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #910   +/-   ##
=========================================
  Coverage     47.46%   47.46%           
- Complexity     3381     3384    +3     
=========================================
  Files           421      421           
  Lines         19974    19974           
  Branches       2798     2798           
=========================================
  Hits           9480     9480           
- Misses         9447     9448    +1     
+ Partials       1047     1046    -1     
Impacted Files Coverage Δ
...se/jkube/maven/plugin/mojo/build/ResourceMojo.java 0.00% <ø> (ø)
...it/config/service/portforward/PortForwardTask.java 65.21% <0.00%> (-4.35%) ⬇️
...e/jkube/kit/config/service/PortForwardService.java 71.57% <0.00%> (-3.16%) ⬇️
...maven/plugin/mojo/build/OpenshiftResourceMojo.java 80.00% <0.00%> (+80.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e2aa310...859587b. Read the comment docs.

@manusa manusa merged commit a3b355b into eclipse-jkube:master Sep 15, 2021
rohanKanojia added a commit to rohanKanojia/jkube that referenced this pull request Sep 15, 2021
This property was wrongly named in ResourceMojo, for maven plugins
this got fixed in eclipse-jkube#910.

Fix property name in OpenShiftResourceTask as well

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
rohanKanojia added a commit to rohanKanojia/jkube that referenced this pull request Sep 16, 2021
…sourceTask

This property was wrongly named in ResourceMojo, for maven plugins
this got fixed in eclipse-jkube#910 and later refactored to use static constant
from ImageNameFormatter.

Use same static constant in OpenShiftResourceTask

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
rohanKanojia added a commit to rohanKanojia/jkube that referenced this pull request Sep 17, 2021
…sourceTask

This property was wrongly named in ResourceMojo, for maven plugins
this got fixed in eclipse-jkube#910 and later refactored to use static constant
from ImageNameFormatter.

Use same static constant in OpenShiftResourceTask

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
manusa pushed a commit that referenced this pull request Sep 17, 2021
…sourceTask

This property was wrongly named in ResourceMojo, for maven plugins
this got fixed in #910 and later refactored to use static constant
from ImageNameFormatter.

Use same static constant in OpenShiftResourceTask

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
manusa pushed a commit that referenced this pull request Oct 11, 2021
…sourceTask

This property was wrongly named in ResourceMojo, for maven plugins
this got fixed in #910 and later refactored to use static constant
from ImageNameFormatter.

Use same static constant in OpenShiftResourceTask

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
manusa pushed a commit that referenced this pull request Oct 19, 2021
…sourceTask

This property was wrongly named in ResourceMojo, for maven plugins
this got fixed in #910 and later refactored to use static constant
from ImageNameFormatter.

Use same static constant in OpenShiftResourceTask

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
@rohanKanojia rohanKanojia deleted the pr/fix-typo-in-resourcemojo-dockerimageuser branch February 3, 2022 16:34
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