You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Hi, we have an issue with backend object when trying to set the hostname with subdomain that has single character in it. For example if we set the hostname to this subdomain backend.s.collector.example.com it will trigger this error
The Backend "backend" is invalid: spec.endpoints[0].fqdn.hostname: Invalid value: "backend.s.collector.example.com": spec.endpoints[0].fqdn.hostname in body should match '^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9]))*$'
However when we set it to backend.staging.collector.example.com there's no issue
Is the regex is expected to not allow subdomain with single character?
Description:
Hi, we have an issue with backend object when trying to set the hostname with subdomain that has single character in it. For example if we set the hostname to this subdomain
backend.s.collector.example.com
it will trigger this errorThe Backend "backend" is invalid: spec.endpoints[0].fqdn.hostname: Invalid value: "backend.s.collector.example.com": spec.endpoints[0].fqdn.hostname in body should match '^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9]))*$'
However when we set it to
backend.staging.collector.example.com
there's no issueIs the regex is expected to not allow subdomain with single character?
gateway/api/v1alpha1/backend_types.go
Lines 97 to 98 in a383dd9
Example manifest
The text was updated successfully, but these errors were encountered: