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

feat: WebAppGenerator tomcat handler uses jkube/jkube-tomcat9-binary-s2i for Docker and S2I builds #206

Merged
merged 1 commit into from
May 22, 2020

Conversation

manusa
Copy link
Member

@manusa manusa commented May 21, 2020

  • WebAppGenerator>TomcatAppSeverHandler uses quay.io/jkube/jkube-tomcat9-binary-s2i ([EPIC] Change base images #183)
    as base image
    • Image supports S2I builds out of the box without any further configuration
  • Fixed deployment to ROOT path for all webapps
  • Added complete coverage to WebAppGenerator

n.b. k8s-webapp tests will fail due to assertions based on previous image assumptions (number of ports). Tests to be updated once the PR is merged (also with more test cases).

@codecov
Copy link

codecov bot commented May 21, 2020

Codecov Report

Merging #206 into master will increase coverage by 0.45%.
The diff coverage is 73.28%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #206      +/-   ##
============================================
+ Coverage     26.28%   26.73%   +0.45%     
- Complexity     1589     1620      +31     
============================================
  Files           350      350              
  Lines         18295    18310      +15     
  Branches       2806     2803       -3     
============================================
+ Hits           4808     4895      +87     
+ Misses        12929    12853      -76     
- Partials        558      562       +4     
Impacted Files Coverage Δ Complexity Δ
...in/java/org/eclipse/jkube/kit/common/Assembly.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...ava/org/eclipse/jkube/kit/common/AssemblyFile.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
.../org/eclipse/jkube/kit/common/AssemblyFileSet.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
.../kit/config/image/build/AssemblyConfiguration.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...ipse/jkube/quarkus/generator/QuarkusGenerator.java 56.00% <0.00%> (ø) 6.00 <0.00> (ø)
...kit/build/core/assembly/DockerAssemblyManager.java 42.32% <50.00%> (ø) 27.00 <1.00> (ø)
...nerator/webapp/handler/CustomAppServerHandler.java 56.25% <56.25%> (+56.25%) 2.00 <2.00> (+2.00)
...nerator/webapp/handler/WildFlyAppSeverHandler.java 86.95% <75.00%> (+4.34%) 24.00 <8.00> (+4.00)
...enerator/webapp/handler/TomcatAppSeverHandler.java 85.71% <85.71%> (+60.71%) 13.00 <13.00> (+10.00)
...clipse/jkube/generator/webapp/WebAppGenerator.java 88.00% <88.00%> (+88.00%) 13.00 <13.00> (+13.00)
... and 4 more

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 1d5cda2...2f51912. Read the comment docs.

…s2i for Docker and S2I builds.

- Fixed deployment to ROOT path for all webapps
- Added complete coverage to WebAppGenerator

Signed-off-by: Marc Nuri <[email protected]>
@manusa manusa force-pushed the feature/tomcat9-base-images branch from 7e90c68 to 2f51912 Compare May 21, 2020 14:08
@sonarcloud
Copy link

sonarcloud bot commented May 21, 2020

SonarCloud Quality Gate failed.

Bug B 1 Bug
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 1 Code Smell

76.9% 76.9% Coverage
0.0% 0.0% Duplication

@manusa manusa marked this pull request as ready for review May 21, 2020 14:27
@manusa manusa mentioned this pull request May 22, 2020
manusa added a commit to marcnuri-forks/jkube-integration-tests that referenced this pull request May 22, 2020
- Test is compliant for new updated base images (eclipse-jkube/jkube#206)
- Service edited and switched to NodePort to verify port response
- Added k8s:log goal verifications
@manusa manusa merged commit d4adb57 into eclipse-jkube:master May 22, 2020
@manusa manusa deleted the feature/tomcat9-base-images branch May 22, 2020 09:00
rohanKanojia pushed a commit to eclipse-jkube/jkube-integration-tests that referenced this pull request May 22, 2020
- Test is compliant for new updated base images (eclipse-jkube/jkube#206)
- Service edited and switched to NodePort to verify port response
- Added k8s:log goal verifications
anandrkskd pushed a commit to anandrkskd/jkube-integration-tests that referenced this pull request May 28, 2020
- Test is compliant for new updated base images (eclipse-jkube/jkube#206)
- Service edited and switched to NodePort to verify port response
- Added k8s:log goal verifications
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.

3 participants