aboutsummaryrefslogtreecommitdiff
path: root/plugin/etcd/msg/path.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-09-22 15:12:02 +0100
committerGravatar GitHub <noreply@github.com> 2018-09-22 15:12:02 +0100
commit9546b606cb58a372361b39604c1ccf54ed91c7b9 (patch)
treedd218e883da9d27e34a76dc75407bccb3b32c938 /plugin/etcd/msg/path.go
parentb3d69f1c7f226805e7f70cfd0e88b488dc2eab1b (diff)
downloadcoredns-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/msg/path.go')
-rw-r--r--plugin/etcd/msg/path.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/etcd/msg/path.go b/plugin/etcd/msg/path.go
index 2abdec0fe..dc7494782 100644
--- a/plugin/etcd/msg/path.go
+++ b/plugin/etcd/msg/path.go
@@ -26,7 +26,7 @@ func Domain(s string) string {
for i, j := 1, len(l)-1; i < j; i, j = i+1, j-1 {
l[i], l[j] = l[j], l[i]
}
- return dnsutil.Join(l[1 : len(l)-1])
+ return dnsutil.Join(l[1 : len(l)-1]...)
}
// PathWithWildcard ascts as Path, but if a name contains wildcards (* or any), the name will be