-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Generate Kubernetes Ingress Paths from Jakarta REST #45696
Comments
Thanks for reporting. Can you provide a few more details on what you would like to see here? |
So bascially this is my resource: @Path("/projects")
public interface ProjectsApi {
@GET
@Path("/autocomplete")
@Produces({ "application/json" })
Uni<AutocompleteResponse> autocomplete(@QueryParam("term") @NotNull @Size(min=3) String term);
@GET
@Path("/filter-elements")
@Produces({ "application/json" })
Uni<GetFilterElementsResponse> getFilterElements();
@GET
@Path("/all")
@Produces({ "application/json" })
Uni<ListProjectsResponse> listProjects();
} Using the kubernetes extension with apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
app.quarkus.io/quarkus-version: 3.17.5
labels:
app.kubernetes.io/name: project-service
app.kubernetes.io/managed-by: quarkus
name: project-service
namespace: staging
spec:
rules:
- http:
paths:
- backend:
service:
name: project-service
port:
name: http
path: /
pathType: Prefix But it would be much nicer to get this: apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
app.quarkus.io/quarkus-version: 3.17.5
labels:
app.kubernetes.io/name: project-service
app.kubernetes.io/managed-by: quarkus
name: project-service
namespace: staging
spec:
rules:
- http:
paths:
- backend:
service:
name: project-service
port:
name: http
path: /projects/autocomplete
pathType: Exact
- backend:
service:
name: project-service
port:
name: http
path: /projects/filter-elements
pathType: Exact
- backend:
service:
name: project-service
port:
name: http
path: /projects/all
pathType: Exact |
Thanks for the example! Would that really be useful in practice? |
Having only On the other hand, I think it would be nice-to-have and not a must-have. We already have |
Let's see what @iocanel thinks |
I agree, this ties nicely to our philosophy. We should collect all registered paths and use the least common denominator for the ingress / route path. @Eric-Prokop: Is this something you would be willing to contribute? |
While I would like to work on this, I won't be able to find the time in the near future. |
Description
It would be nice if the ingress routing could be more explicit by adding the paths known from Jakarta REST to the generated kubernetes ingress instead of just a
Implementation ideas
No response
The text was updated successfully, but these errors were encountered: