-
Notifications
You must be signed in to change notification settings - Fork 529
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
Fix #253: JKubeServiceHub BuildService implementations are now loaded via PluginServiceFactory #772
Conversation
…on mechanism + Use ServiceLoader to load all Build Services and pick up service which is applicable in current context. This requires BuildService implementations to have zero-arg constructors so I need to set the elements from setters instead. + Added isApplicable(), setJKubeServiceHub(), methods in BuildService interface Signed-off-by: Rohan Kumar <[email protected]>
7ed2489
to
140e7b3
Compare
5eff5a8
to
8db3631
Compare
- Refactor OpenshiftBuildService - Improve coverage - Add specific tests for build service election order or the different Quarkus packaging modes Signed-off-by: Marc Nuri <[email protected]>
8db3631
to
4854f43
Compare
Codecov Report
@@ Coverage Diff @@
## master #772 +/- ##
============================================
+ Coverage 46.21% 46.36% +0.15%
- Complexity 3246 3261 +15
============================================
Files 413 415 +2
Lines 19856 19852 -4
Branches 2781 2778 -3
============================================
+ Hits 9176 9204 +28
+ Misses 9661 9633 -28
+ Partials 1019 1015 -4
Continue to review full report at Codecov.
|
...src/main/java/org/eclipse/jkube/kit/config/service/openshift/OpenShiftBuildServiceUtils.java
Outdated
Show resolved
Hide resolved
Reuse the PluginServiceFactory that provides injection for Generators and Enrichers. Order of BuildService can be declared using our internal syntax in the service definition files. or the different Quarkus packaging modes Signed-off-by: Marc Nuri <[email protected]>
4854f43
to
e1cf1ab
Compare
Kudos, SonarCloud Quality Gate passed! |
clusterAccess = new ClusterAccess(log, | ||
ClusterConfiguration.from(System.getProperties(), jKubeServiceHub.getConfiguration().getProject().getProperties()).build()); | ||
} | ||
client = clusterAccess.createDefaultClient(); |
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.
assigning value of clusterAccess.createDefaultClient()
which can either be DefaultKubernetesClient
or DefaultOpenShiftClient
seems to OpenShiftClient client
seems to be causing #815
In v1.3.0, this code was in JKubeServiceHub and client
was of type KubernetesClient
https://github.com/eclipse/jkube/blob/v1.3.0/jkube-kit/config/service/src/main/java/org/eclipse/jkube/kit/config/service/JKubeServiceHub.java#L62
Description
Supersedes closes #748
Fixes #253
Complete refactor of the BuildService(s) and load process in JKubeServiceHub
Type of change
test, version modification, documentation, etc.)
Checklist