remove wildcard query functionality (#5019)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
parent
40a526b27f
commit
abaf938623
9 changed files with 30 additions and 178 deletions
|
@ -38,18 +38,6 @@ func parseRequest(name, zone string) (r recordRequest, err error) {
|
|||
}
|
||||
segs := dns.SplitDomainName(base)
|
||||
|
||||
r.port = "*"
|
||||
r.protocol = "*"
|
||||
// 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
|
||||
// * endpoint
|
||||
// *_protocol._port
|
||||
|
||||
last := len(segs) - 1
|
||||
if last < 0 {
|
||||
return r, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue