You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the quarkus-kubernetes extension, the generation of the Ingress when quarkus.kubernetes.ingress.expose=true is broken in 2.0.0.CR3. It works fine in 1.13.7.Final.
To Reproduce
I'm attaching a reproducer project which was created using the Quarkus Kubernetes Guide. When running ./mvnw clean package with the reproducer project, the Ingress that gets generated inside target/kubernetes/kubernetes.yml looks like
When trying to deploy this to OpenShift/Kubernetes (via kubectl apply -f target/kubernetes/kubernetes.yml), this error is encountered:
$ kubectl apply -f target/kubernetes/kubernetes.yml
service/kubernetes-quickstart created
deployment.apps/kubernetes-quickstart created
The Ingress "kubernetes-quickstart" is invalid:
* spec.rules[0].http.paths[0].path: Invalid value: "": must be an absolute path
* spec.rules[1].http.paths[0].path: Invalid value: "": must be an absolute path
When switching the project back to Quarkus version 1.13.7.Final and re-running ./mvnw clean package, the generated Ingress looks like
$ kubectl apply -f target/kubernetes/kubernetes.yml
service/kubernetes-quickstart created
deployment.apps/kubernetes-quickstart created
The Ingress "kubernetes-quickstart" is invalid:
* spec.rules[0].http.paths[0].path: Invalid value: "": must be an absolute path
* spec.rules[0].http.paths[1].pathType: Required value: pathType must be specified
# Add your application.properties here, if applicable.quarkus.kubernetes.ingress.expose=true
quarkus.container-image.registry=quay.io
quarkus.container-image.group=edeandrea
quarkus.container-image.build=true
Environment (please complete the following information):
Output of uname -a or ver
Darwin edeandre-mac 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64
Output of java -version
openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
Quarkus version or git rev
1.13.7.Final vs 2.0.0.CR3
Build tool (ie. output of mvnw --version or gradlew --version)
Describe the bug
When using the
quarkus-kubernetes
extension, the generation of theIngress
whenquarkus.kubernetes.ingress.expose=true
is broken in2.0.0.CR3
. It works fine in1.13.7.Final
.To Reproduce
I'm attaching a reproducer project which was created using the Quarkus Kubernetes Guide. When running
./mvnw clean package
with the reproducer project, theIngress
that gets generated insidetarget/kubernetes/kubernetes.yml
looks likeWhen trying to deploy this to OpenShift/Kubernetes (via
kubectl apply -f target/kubernetes/kubernetes.yml
), this error is encountered:When switching the project back to Quarkus version
1.13.7.Final
and re-running./mvnw clean package
, the generatedIngress
looks likeIt applies fine.
If I then add a value in the
quarkus.kubernetes.ingress.host
property, in2.0.0.CR3
theIngress
looks likewhich is still invalid when trying to apply it:
Reproducer project:
kubernetes-quickstart.zip
Configuration
Environment (please complete the following information):
Output of
uname -a
orver
Darwin edeandre-mac 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64
Output of
java -version
openjdk version "11.0.2" 2019-01-15 OpenJDK Runtime Environment 18.9 (build 11.0.2+9) OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
Quarkus version or git rev
1.13.7.Final
vs2.0.0.CR3
Build tool (ie. output of
mvnw --version
orgradlew --version
)quarkusio#18007
The text was updated successfully, but these errors were encountered: