pkg/controlplane/cache.go
Function ToListener
has 123 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func ToListener(listenerName string, routeName string, port int32, p corev1.Protocol) *listener.Listener {
var protocol core.SocketAddress_Protocol
switch p {
case corev1.ProtocolTCP:
protocol = core.SocketAddress_TCP