mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
collect endpoint node name from endopintslices (#4581)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
@@ -138,7 +138,9 @@ func EndpointSliceToEndpoints(obj meta.Object) (meta.Object, error) {
|
|||||||
if end.TargetRef != nil {
|
if end.TargetRef != nil {
|
||||||
ea.TargetRefName = end.TargetRef.Name
|
ea.TargetRefName = end.TargetRef.Name
|
||||||
}
|
}
|
||||||
// EndpointSlice does not contain NodeName, leave blank
|
if end.NodeName != nil {
|
||||||
|
ea.NodeName = *end.NodeName
|
||||||
|
}
|
||||||
e.Subsets[0].Addresses = append(e.Subsets[0].Addresses, ea)
|
e.Subsets[0].Addresses = append(e.Subsets[0].Addresses, ea)
|
||||||
e.IndexIP = append(e.IndexIP, a)
|
e.IndexIP = append(e.IndexIP, a)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user