mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
handle blank name and namespaces (#2042)
This commit is contained in:
committed by
Miek Gieben
parent
444472891f
commit
e6ef320d13
@@ -43,10 +43,10 @@ func parseRequest(state request.Request) (r recordRequest, err error) {
|
||||
|
||||
r.port = "*"
|
||||
r.protocol = "*"
|
||||
r.service = "*"
|
||||
r.namespace = "*"
|
||||
// r.endpoint is the odd one out, we need to know if it has been set or not. If it is
|
||||
// empty we should skip the endpoint check in k.get(). Hence we cannot set if to "*".
|
||||
// for r.name, r.namespace and r.endpoint, we need to know if they have been set or not...
|
||||
// For endpoint: if empty we should skip the endpoint check in k.get(). Hence we cannot set if to "*".
|
||||
// For name: myns.svc.cluster.local != *.myns.svc.cluster.local
|
||||
// For namespace: svc.cluster.local != *.svc.cluster.local
|
||||
|
||||
// start at the right and fill out recordRequest with the bits we find, so we look for
|
||||
// pod|svc.namespace.service and then either
|
||||
|
||||
Reference in New Issue
Block a user