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.
Describe the bug When using the
quarkus-kubernetes
extension andquarkus.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:
However, if we remove the
ports
section inside thecontainer
, the manifest gets applied properly.https://github.com/quarkusio/quarkus/issues/10332
$upstream:10332$