mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	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:
		| @@ -130,7 +130,7 @@ func (f *Federation) isNameFederation(name, zone string) (string, string) { | ||||
| 	fed := labels[ll-2] | ||||
|  | ||||
| 	if _, ok := f.f[fed]; ok { | ||||
| 		without := dnsutil.Join(labels[:ll-2]) + labels[ll-1] + "." + zone | ||||
| 		without := dnsutil.Join(labels[:ll-2]...) + labels[ll-1] + "." + zone | ||||
| 		return without, fed | ||||
| 	} | ||||
| 	return "", "" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user