Skip to content

quarkus.kubernetes.annotations gets not applied to ingress #10260

@haraldatbmw

Description

@haraldatbmw

Describe the bug
I'm using the kubernetes extension to deploy to kubernetes.
I'm setting expose to true to get an ingress resource generated (target/kubernetes/kubernetes.xml).
My annotation quarkus.kubernetes.annotations."kubernetes.io/ingress.class"=addon-http-application-routing gets not applied to the generated ingress but to all other resources.

Expected behavior
Labels and annotations gets applied to ingress too.

Actual behavior
Can not apply annotations via application.properties to generated ingress resource.

To Reproduce
Steps to reproduce the behavior:

  1. Bootstrap a new Quarkus project using the kubernetes extension
  2. Add the following application.properties
quarkus.kubernetes.deployment-target=kubernetes
quarkus.kubernetes.expose=true
quarkus.kubernetes.annotations."kubernetes.io/ingress.class"=addon-http-application-routing
  1. Call maven mvn package
  2. Open target/kubernetes/kubernetes.xml file to see the generated resources.

Environment (please complete the following information):

  • Quarkus version or git rev: 1.5.2.Final

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions