Unit tests fails when running them inside a Kubernetes cluster #8314
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Issues which should be fixed (post-triage)
Describe the bug
Arguable a somewhat special edge case, but the introduction of
DefaultOIDCDiscoveryBaseURL
with its default valuehttps://kubernetes.default.svc
leads to a panic when trying to run the unit tests in a CI that runs in Kubernetes. I suspect that the initialization picks up that endpoint and can resolve it in-cluster and then tries to use it. Reason why I suspect this is that if you replacekubernetes.default.svc
with something that cannot be resolved in-cluster, the test case does pass.Expected behavior
Unit tests do run also in a Kubernetes provided containerized environment, if possible.
To Reproduce
Run unit tests inside a Kubernetes pod, e.g. Tekton setup.
Knative release version
v0.43.0
knative-v1.16.0
Additional context
n/a
The text was updated successfully, but these errors were encountered: