collect endpoint node name from endopintslices (#4581)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
parent
b881a1ef13
commit
e1931d48d1
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue