-
Notifications
You must be signed in to change notification settings - Fork 522
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 #1053: Add ocHelm task to OpenShift Gradle Plugin #1072
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1072 +/- ##
============================================
+ Coverage 48.95% 48.98% +0.02%
- Complexity 3630 3634 +4
============================================
Files 455 456 +1
Lines 20738 20752 +14
Branches 2827 2827
============================================
+ Hits 10153 10165 +12
- Misses 9499 9501 +2
Partials 1086 1086
Continue to review full report at Codecov.
|
955da63
to
2b5481c
Compare
gradle-plugin/openshift/src/main/java/org/eclipse/jkube/gradle/plugin/OpenShiftExtension.java
Outdated
Show resolved
Hide resolved
gradle-plugin/openshift/src/main/java/org/eclipse/jkube/gradle/plugin/OpenShiftExtension.java
Outdated
Show resolved
Hide resolved
Move manifest not found warning message into a method so that it can be overridden in case of OpenShiftHelmMojo Signed-off-by: Rohan Kumar <[email protected]>
…fests and template The property name seems to be a typo and openshiftManifest field should have `jkube.openshiftManifest` as property name instead of `jkube.kubernetesManifest` Signed-off-by: Rohan Kumar <[email protected]>
Implement `oc:helm` equivalent functionality `ocHelm` for OpenShift Gradle Plugin. Signed-off-by: Rohan Kumar <[email protected]>
We had getOpenShiftManifestOrDefault method in OpenShiftExtension which was used for getting openshift manifests in case of OpenShift. However, this seemed redundant as we had getManifest method in KubernetesExtension(overridden in OpenShiftExtension) for same task. To keep it simple, remove getOpenShiftManifstOrDefault method from OpenShiftExtension and override getKubernetesManifestOrDefault method in OpenShiftExtension Signed-off-by: Rohan Kumar <[email protected]>
2b5481c
to
b693e5f
Compare
public File getKubernetesTemplateOrDefault() { | ||
return getOrDefaultFile("jkube.kubernetesTemplate", this::getKubernetesTemplate, javaProject.getOutputDirectory().toPath().resolve(DEFAULT_OPENSHIFT_TEMPLATE).toFile()); | ||
} |
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.
Add a test for this in KubernetesExtensionPropertyTest + OpenShiftExtensionPropertyTest
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.
There is a test already in KubernetesExtensionPropertyTest, I'll add the test in OpenShiftExtensionPropertyTest
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.
👍 I was checking on an outdated branch
…efault Add test for getKubernetesTemplateOrDefault's overridden implementation in OpenShiftExtension Signed-off-by: Rohan Kumar <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
Description
Fix #1053
Ported OpenShiftHelmMojo to openshift gradle plugin .Implement
oc:helm
equivalent functionalityocHelm
for OpenShiftGradle Plugin.
Signed-off-by: Rohan Kumar [email protected]
Type of change
test, version modification, documentation, etc.)
Checklist