troubleshoot icon indicating copy to clipboard operation
troubleshoot copied to clipboard

DNS Validation in Load Balancer Collector Caps Address Length at 63 Characters Instead of 255

Open diamonwiggins opened this issue 1 year ago • 1 comments

Bug Description

The function used from the Kubernetes validation library to validate DNS addresses during the preflight check for load balancer addresses imposes an unintended 63-character limit. This limit stems from the validation criteria used for pod/service DNS names, but in the case of load balancer addresses, the specified address can be up to 255 characters. The validation should allow for the full 255-character length rather than being capped at 63 characters.

Expected Behavior

Compliant DNS addresses are respected in the tcpLoadBalancer collector

Steps To Reproduce

  1. Run a preflight check for a load balancer address using an address longer than 63 characters.
  2. Observe that the validation fails despite the address being under the 255-character limit.

Additional Context

Include the following information.

  • Troubleshoot version. If you built from source, note that including the version of Go you used to build with.

  • Operating system

  • Operating system version

  • Other details that might be helpful in diagnosing the problem

  • Troubleshoot v0.103.0

diamonwiggins avatar Sep 23 '24 21:09 diamonwiggins