• Markus Sommer's avatar
    Kubernetes srv (#823) · d0d7f4c8
    Markus Sommer authored
    * Treat absence of port/service in SRV as wildcard
    
    Normally, a SRV-request should have the form
    _<service>._<port>.<name>.<zone>. The k8s peer-finder which is used for
    bootstrapping by some applications will however query for SRV at
    <name>.<zone>.
    
    To compensate for this behaviour, treat the absence of _<service> and
    _<port> as wildcards.
    
    * Modified tests with new SRV behaviour
    
    Added a testcase for a SRV request without port & service
    Removed now valid query from invalidSRVQueries
    
    * Forgot to run gofmt on test/kubernetes_test.go
    d0d7f4c8
kubernetes_test.go 18.7 KB