diff options
author | 2018-09-22 15:12:02 +0100 | |
---|---|---|
committer | 2018-09-22 15:12:02 +0100 | |
commit | 9546b606cb58a372361b39604c1ccf54ed91c7b9 (patch) | |
tree | dd218e883da9d27e34a76dc75407bccb3b32c938 /plugin/etcd/stub.go | |
parent | b3d69f1c7f226805e7f70cfd0e88b488dc2eab1b (diff) | |
download | coredns-9546b606cb58a372361b39604c1ccf54ed91c7b9.tar.gz coredns-9546b606cb58a372361b39604c1ccf54ed91c7b9.tar.zst coredns-9546b606cb58a372361b39604c1ccf54ed91c7b9.zip |
K8s remove string ops (#2119)
* plugin/kubernetes: remove bunch a string ops
This removes a bunch of appends to where not needed, makes dnsutil.Join
take variadic args which removes the need to wrap in a new string slice.
Signed-off-by: Miek Gieben <miek@miek.nl>
* Fix calls to dnsutil.Join
Signed-off-by: Miek Gieben <miek@miek.nl>
* Revert these
Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin/etcd/stub.go')
-rw-r--r-- | plugin/etcd/stub.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/etcd/stub.go b/plugin/etcd/stub.go index c270bcd2b..37e426ac4 100644 --- a/plugin/etcd/stub.go +++ b/plugin/etcd/stub.go @@ -61,7 +61,7 @@ Services: // Chop of left most label, because that is used as the nameserver place holder // and drop the right most labels that belong to zone. // We must *also* chop of dns.stub. which means cutting two more labels. - domain = dnsutil.Join(labels[1 : len(labels)-dns.CountLabel(z)-2]) + domain = dnsutil.Join(labels[1 : len(labels)-dns.CountLabel(z)-2]...) if domain == z { log.Warningf("Skipping nameserver for domain we are authoritative for: %s", domain) continue Services |