quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.85k stars 2.7k forks source link

Add `quarkus.openshift.route.path` configuration property #44707

Open marko-bekhta opened 15 hours ago

marko-bekhta commented 15 hours ago

Description

In some cases, it may be helpful to configure path-based routes (https://docs.redhat.com/en/documentation/openshift_container_platform/4.17/html/networking/configuring-routes#nw-path-based-routes_route-configuration). At the moment Quarkus allows configuring the host through the quarkus.openshift.route.host property but not path.

After a quick look at https://github.com/quarkusio/quarkus/blob/30859cca421a76e77c8566633bd56f4f0ff81b55/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/ApplyOpenshiftRouteConfigurator.java#L19-L23 it seems that the route builder does not have an option to set the path, so implementing this would probably require changes to io.dekorate

Implementation ideas

No response

quarkus-bot[bot] commented 15 hours ago

/cc @geoand (kubernetes,openshift), @iocanel (kubernetes,openshift), @radcortez (config)