mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2026-05-05 14:46:10 +02:00
Update endpoint/endpoint.go
Co-authored-by: Eric Bailey <yurrriq@users.noreply.github.com>
This commit is contained in:
parent
6066b700b8
commit
3ca4d0250f
@ -344,7 +344,7 @@ type DNSEndpointList struct {
|
||||
Items []DNSEndpoint `json:"items"`
|
||||
}
|
||||
|
||||
// Apply filter based on EndpointKey (using DNSName, RecordType & SetIdentifier)
|
||||
// RemoveDuplicates returns a slice holding the unique endpoints.
|
||||
func RemoveDuplicates(filtered []*Endpoint) []*Endpoint {
|
||||
visited := make(map[EndpointKey]struct{})
|
||||
result := []*Endpoint{}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user