snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Generated knative.yaml does not work on Openshift Serverless #125

Closed snowdrop-bot closed 4 years ago

snowdrop-bot commented 4 years ago

Describe the bug When using the quarkus-kubernetes extension and quarkus.kubernetes.deployment-target=knative, the generated manifest cannot be applied to an Openshift Cluster with Openshift Serverless installed.

Expected behavior The auto-generated manifests work OOTB on Openshift Serverless

Actual behavior When applying the manifests as produced by the Kubernetes extension, we get:

Error from server (BadRequest): error when creating "target/kubernetes/knative.json": admission webhook "validation.webhook.serving.knative.dev" denied the request: validation failed: Port name http is not allowed: spec.template.spec.containers[0].ports
Name must be empty, or one of: 'h2c', 'http1'

However, if we remove the ports section inside the container, the manifest gets applied properly.


https://github.com/quarkusio/quarkus/issues/10332


$upstream:10332$