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
// gwProtocolMatches returns whether a and b are the same protocol,// where HTTP and HTTPS are considered the same.funcgwProtocolMatches(a, b v1beta1.ProtocolType) bool {
ifa==v1beta1.HTTPSProtocolType {
a=v1beta1.HTTPProtocolType
}
ifb==v1beta1.HTTPSProtocolType {
b=v1beta1.HTTPProtocolType
}
returna==b
}
The protocols will be mixed between the listener and route (TLS and TCP). This check seems to prevent what is otherwise considered valid usages from having DNS records generated.
{"level":"debug","msg":"No endpoints could be generated from TCPRoute ...","time":"..."}
{"level":"debug","msg":"Gateway ... section \"...\" does not match TCPRoute ... hostnames [\"...\" \"\"]","time":"..."}
What would you like to be added:
remove or allow to disable this check
https://github.com/kubernetes-sigs/external-dns/blob/master/source/gateway.go#L318-L321
Or to extend
gwProtocolMatches
to include considering TLS and TCP the same:https://github.com/kubernetes-sigs/external-dns/blob/master/source/gateway.go#L476-L486
Why is this needed:
When using a Gateway as a terminating proxy for TCP connections as per https://gateway-api.sigs.k8s.io/guides/tls/#clientserver-and-tls
The protocols will be mixed between the listener and route (TLS and TCP). This check seems to prevent what is otherwise considered valid usages from having DNS records generated.
Given
The text was updated successfully, but these errors were encountered: