Describe the bug
Kubernetes extension permits existing resources in src/main/kubernetes/kubernetes.yml to be merged into the build output, combined with the service and deployment resources.
I have updated the ingress specification from apiVersion: extensions/v1beta1
to apiVersion: networking.k8s.io/v1 which went GA in Kubernetes v1.19. It works fine on the v1beta1 legacy version.
Link to a small reproducer (preferably a Maven project if the issue is not Gradle-specific).
Or attach an archive containing the reproducer to the issue.
Steps to reproduce the behavior:
Add above Ingress to your src/main/kubernetes/kubernetes.yml
Build, and view generated Kubernetes.yml will look as above
Environment (please complete the following information):
Output of uname -a or ver: Darwin f0189889e1c7.ant.amazon.com 18.7.0 Darwin Kernel Version 18.7.0: Tue Jan 12 22:04:47 PST 2021; root:xnu-4903.278.56~1/RELEASE_X86_64 x86_64
Output of java -version: openjdk version "15" 2020-09-15
GraalVM version (if different from Java): 21.0.0
Quarkus version or git rev: 1.12.0-Final
Build tool (ie. output of mvnw --version or gradlew --version): Gradle 6.7
Additional context
Legacy Beta Ingress specification works ok
Describe the bug Kubernetes extension permits existing resources in
src/main/kubernetes/kubernetes.yml
to be merged into the build output, combined with the service and deployment resources.I have updated the ingress specification from
apiVersion: extensions/v1beta1
toapiVersion: networking.k8s.io/v1
which went GA in Kubernetes v1.19. It works fine on thev1beta1
legacy version.https://kubernetes.io/docs/concepts/services-networking/ingress/
Expected behavior Additional resource, should be left untouched
Actual behavior The service details gets dropped and is replaced by
{}
, which results in an error when applying the manifest.To Reproduce
Link to a small reproducer (preferably a Maven project if the issue is not Gradle-specific).
Or attach an archive containing the reproducer to the issue.
Steps to reproduce the behavior:
src/main/kubernetes/kubernetes.yml
Environment (please complete the following information):
uname -a
orver
: Darwin f0189889e1c7.ant.amazon.com 18.7.0 Darwin Kernel Version 18.7.0: Tue Jan 12 22:04:47 PST 2021; root:xnu-4903.278.56~1/RELEASE_X86_64 x86_64java -version
: openjdk version "15" 2020-09-15mvnw --version
orgradlew --version
): Gradle 6.7Additional context Legacy Beta Ingress specification works ok
/cc @geoand
https://github.com/quarkusio/quarkus/issues/15430
$upstream:15430$