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

Fixed Quarkus health paths #579

Closed
wants to merge 11 commits into from
Closed

Conversation

dloiacono
Copy link
Contributor

@dloiacono dloiacono commented Feb 17, 2021

Description

The way the health path is builded for quarkus application is not correct.

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

manusa and others added 11 commits January 28, 2021 12:27
ci: Upgrade build environment of sonar jobs on CircleCI

Signed-off-by: Subhrodip Mohanta <[email protected]>
Signed-off-by: Subhrodip Mohanta <[email protected]>
… fragments

CustomResource fragments are now deserialized/serialized into GenericCustomResource so
that they are processed with standard kubernetes types
Resolving Sonar Issues - Monday

- using Java 8 computeIfAbsent feature to call the lob verbose method inside the  lambda
- using Java 8 putIfAbsent feature
- removing unused method
- removing unneeded test
- using Java 8 putIfAbsent feature
- using Java 8 putIfAbsent feature
- replacing MapUtil method with native Java

using Java 8 putIfAbsent feature

using Java 8 putIfAbsent feature

removing unneeded test

removing unused method

using Java 8 putIfAbsent feature

using Java 8 computeIfAbsent feature to call the lob verbose method inside the  lambda

using computeIfAbsent

- Resolving Sonar issue


Signed-off-by: Anyul Rivas <[email protected]>
@rohanKanojia
Copy link
Member

I think you would need to modify tests too with respect to this change:

[ERROR]   QuarkusHealthCheckEnricherTest.createWithCustomPathInKubernetes:105 [Extracted: spec] 
Expecting:
  <[("HTTP", "/my-custom-path/live", "HTTP", "/my-custom-path/ready")]>
to contain exactly (and in same order):
  <[("HTTP", "/my-custom-path", "HTTP", "/my-custom-path")]>
but some elements were not found:
  <[("HTTP", "/my-custom-path", "HTTP", "/my-custom-path")]>
and others were not expected:
  <[("HTTP", "/my-custom-path/live", "HTTP", "/my-custom-path/ready")]>

[ERROR]   QuarkusHealthCheckEnricherTest.createWithDefaultsInKubernetes:86 [Extracted: spec] 
Expecting:
  <[("HTTP", "/health/live", "HTTP", "/health/ready")]>
to contain exactly (and in same order):
  <[("HTTP", "/health", "HTTP", "/health")]>
but some elements were not found:
  <[("HTTP", "/health", "HTTP", "/health")]>
and others were not expected:
  <[("HTTP", "/health/live", "HTTP", "/health/ready")]>

@codecov
Copy link

codecov bot commented Feb 18, 2021

Codecov Report

Merging #579 (4a87c50) into 1.1.x (d8385d1) will increase coverage by 0.26%.
The diff coverage is 81.87%.

Impacted file tree graph

@@             Coverage Diff              @@
##              1.1.x     #579      +/-   ##
============================================
+ Coverage     42.04%   42.30%   +0.26%     
- Complexity     2840     2871      +31     
============================================
  Files           402      404       +2     
  Lines         19461    19473      +12     
  Branches       2777     2760      -17     
============================================
+ Hits           8183     8239      +56     
+ Misses        10287    10243      -44     
  Partials        991      991              
Impacted Files Coverage Δ Complexity Δ
...e/jkube/kit/build/service/docker/BuildService.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...ube/kit/build/service/docker/ContainerTracker.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...g/handler/compose/DockerComposeServiceWrapper.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...org/eclipse/jkube/kit/common/util/ProcessUtil.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...kube/kit/enricher/api/visitor/MetadataVisitor.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...ube/enricher/generic/openshift/ExposeEnricher.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...pse/jkube/maven/plugin/mojo/develop/WatchMojo.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...onfig/service/kubernetes/KubernetesClientUtil.java 18.64% <50.00%> (-6.36%) 11.00 <0.00> (-1.00)
.../kit/enricher/api/util/KubernetesResourceUtil.java 38.05% <50.00%> (+0.39%) 52.00 <2.00> (ø)
...eclipse/jkube/kit/config/service/ApplyService.java 19.09% <70.83%> (-0.84%) 51.00 <4.00> (-4.00)
... and 18 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 d8385d1...4a87c50. Read the comment docs.

@manusa manusa changed the base branch from master to 1.1.x February 19, 2021 12:03
@manusa manusa changed the base branch from 1.1.x to master February 19, 2021 12:03
@manusa
Copy link
Member

manusa commented Feb 19, 2021

Hi @dloiacono
We want to release 1.1.1 early next week.
If you want this to be part of that release, please create the commit on top of the 1.1.x branch.
On the other hand, if you fine with this being part of 1.2.0 (release date TBD), just let us know.

@dloiacono dloiacono changed the base branch from master to 1.1.x February 19, 2021 17:19
dloiacono pushed a commit to dloiacono/jkube that referenced this pull request Feb 19, 2021
Signed-off-by: domenico.loiacono <[email protected]>
dloiacono pushed a commit to dloiacono/jkube that referenced this pull request Feb 19, 2021
Signed-off by: Domenico Loiacono <[email protected]>
@sonarcloud
Copy link

sonarcloud bot commented Feb 19, 2021

Kudos, SonarCloud Quality Gate passed!

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

82.5% 82.5% Coverage
0.0% 0.0% Duplication

@dloiacono dloiacono closed this Feb 21, 2021
dloiacono pushed a commit to dloiacono/jkube that referenced this pull request Feb 22, 2021
dloiacono pushed a commit to dloiacono/jkube that referenced this pull request Feb 22, 2021
Signed-off by: Domenico Loiacono <[email protected]>
dloiacono pushed a commit to dloiacono/jkube that referenced this pull request Feb 22, 2021
Signed-off by: domenico.loiacono <[email protected]>
dloiacono pushed a commit to dloiacono/jkube that referenced this pull request Feb 22, 2021
Signed-off by: Domenico Loiacono <[email protected]>
dloiacono pushed a commit to dloiacono/jkube that referenced this pull request Feb 22, 2021
Signed-off-by: domenico.loiacono <[email protected]>
dloiacono pushed a commit to dloiacono/jkube that referenced this pull request Feb 22, 2021
Signed-off-by: Domenico Loiacono <[email protected]>
dloiacono pushed a commit to dloiacono/jkube that referenced this pull request Feb 22, 2021
dloiacono pushed a commit to dloiacono/jkube that referenced this pull request Feb 22, 2021
dloiacono pushed a commit to dloiacono/jkube that referenced this pull request Feb 22, 2021
@manusa manusa added this to the 1.1.1 milestone Feb 22, 2021
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.

6 participants