Skip to content

Prober test name length can easily cause DNS label too long error #4441

@cardil

Description

@cardil

Describe the bug
Having too long namespace or kservice name can lead to an error like:

$ host wathola-receiver-test-continuous-events-propagation-with-prober-zxmkp.apps.example.org
host: 'wathola-receiver-test-continuous-events-propagation-with-prober-zxmkp.apps.example.org' is not a legal IDN name (domain label longer than 63 characters), use +noidnin

In this case my namespace is test-continuous-events-propagation-with-prober-zxmkp and knative service name is wathola-receiver. The namespace is taken from Go test method name. The limit is 63 characters. In this example
the subdomain has 69 characters.

This does affect OpenShift Serverless as kservices there have a URL format of ${ksvc.name}-${ksvc.namespace} to enable usage of TLS wildcard certificates.

Expected behavior
Reducing this test method name length will help fit within this strict limit of 63 chars.

To Reproduce
openshift-knative/serverless-operator#530 (comment)

Knative release version
0.17+

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions