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>
This commit is contained in:
parent
b3d69f1c7f
commit
9546b606cb
11 changed files with 31 additions and 44 deletions
|
@ -85,7 +85,7 @@ func qname(zone string) string {
|
|||
l1 := strconv.Itoa(r.Int())
|
||||
l2 := strconv.Itoa(r.Int())
|
||||
|
||||
return dnsutil.Join([]string{l1, l2, zone})
|
||||
return dnsutil.Join(l1, l2, zone)
|
||||
}
|
||||
|
||||
var r = rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue