-
Notifications
You must be signed in to change notification settings - Fork 432
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
refactor (jkube-kit) : Move logic for adding OpenShift Build specific properties to DefaultGeneratorManager #3037
refactor (jkube-kit) : Move logic for adding OpenShift Build specific properties to DefaultGeneratorManager #3037
Conversation
Eclipse JKube CI ReportStarted new GH workflow run for #3037 (2024-05-14T13:52:55Z) ⚙️ JKube E2E Tests (9080295619)
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3037 +/- ##
=============================================
+ Coverage 59.36% 71.01% +11.65%
- Complexity 4586 5076 +490
=============================================
Files 500 488 -12
Lines 21211 19440 -1771
Branches 2830 2500 -330
=============================================
+ Hits 12591 13805 +1214
+ Misses 7370 4421 -2949
+ Partials 1250 1214 -36 ☔ View full report in Codecov by Sentry. |
I'll rebase this once #3042 is in. |
… properties to DefaultGeneratorManager In Resource mojo and tasks, we've duplicated code that adds the following properties to JavaProject in case of OpenShift mode: - `jkube.image.user` : Sets image user property to currently logged in OpenShift namespace so that image user portion points to namespace - `jkube.internal.effective.platform.mode` : Used by some enrichers to determine whether current platform is OpenShift. This looks like a remnant of Fabric8 Maven Plugin refactor. We should get rid of this in follow up PR. This PR only moves code from Mojos/Tasks -> DefaultGeneratorManager.generateAndMerge() Signed-off-by: Rohan Kumar <rohaan@redhat.com>
58ea643
to
d7eed61
Compare
@@ -21,6 +21,7 @@ | |||
import java.util.List; | |||
import java.util.Optional; | |||
|
|||
import com.networknt.schema.utils.StringUtils; |
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.
You've imported wrong StringUtils
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.
🤦
Signed-off-by: Marc Nuri <marc@marcnuri.com>
d7eed61
to
62f78c8
Compare
Quality Gate passedIssues Measures |
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.
LGTM, thx!
Description
In Resource mojo and tasks, we've duplicated code that adds the following properties to JavaProject in case of OpenShift mode:
jkube.image.user
: Sets image user property to currently logged in OpenShift namespace so that image user portion points to namespacejkube.internal.effective.platform.mode
: Used by some enrichers to determine whether current platform is OpenShift. This looks like a remnant of Fabric8 Maven Plugin refactor. We should get rid of this in follow up PR.This PR only moves code from Mojos/Tasks -> DefaultGeneratorManager.generateAndMerge()
Type of change
test, version modification, documentation, etc.)
Checklist