Skip to content

Commit

Permalink
Fix: eclipse-jkube#2239 Quarkus k8s:resource automatic port pick up
Browse files Browse the repository at this point in the history
Signed-off-by: Ankit Singh <ankit2.singh@samsung.com>
  • Loading branch information
asingh2295 authored and rohanKanojia committed Jul 27, 2023
1 parent 1ffc921 commit e3c1f92
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
import static org.eclipse.jkube.quarkus.QuarkusUtils.concatPath;
import static org.eclipse.jkube.quarkus.QuarkusUtils.isStartupEndpointSupported;
import static org.eclipse.jkube.quarkus.QuarkusUtils.resolveCompleteQuarkusHealthRootPath;
import static org.eclipse.jkube.quarkus.QuarkusUtils.extractPort;
import static org.eclipse.jkube.quarkus.QuarkusUtils.getQuarkusConfiguration;

/**
* Enriches Quarkus containers with health checks if the quarkus-smallrye-health is present
Expand Down Expand Up @@ -87,7 +89,7 @@ private Probe discoverQuarkusHealthCheck(int initialDelay, Function<JavaProject,
}
return new ProbeBuilder()
.withNewHttpGet()
.withNewPort(asInteger(getConfig(Config.PORT)))
.withNewPort(asInteger(extractPort(getContext().getProject(), getQuarkusConfiguration(getContext().getProject()), getConfig(Config.PORT))))
.withPath(resolveHealthPath(pathResolver.apply(getContext().getProject())))
.withScheme(getConfig(Config.SCHEME))
.endHttpGet()
Expand Down

0 comments on commit e3c1f92

Please sign in to comment.