plugin/kubernetes: Watch EndpointSlices (#4209)
* initial commit Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * convert endpointslices to object.endpoints Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * add opt hard coded for now Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * check that server supports endpointslice Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * fix import grouping Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * dont use endpoint slice in 1.17 or 1.18 Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * bump kind/k8s in circle ci to latest Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * drop k8s to latest supported by kind Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * use endpointslice name as endoint Name; index by Service name Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * use index key comparison in nsAddrs() Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * add Index to object.Endpoint fixtures; fix direct endpoint name compares Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * add slice dup check and test Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * todo Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * add ep-slice skew dup test for reverse Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * nsaddrs: de-dup ep-slice skew dups; add test Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * remove todo Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * address various feedback Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * consolidate endpoint/slice informer code Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * fix endpoint informer consolidation; use clearer func name Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * log info; use major/minor fields Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * fix nsAddr and unit test Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * add latency tracking for endpointslices Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * endpointslice latency unit test & fix Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * code shuffling Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * rename endpointslices in tests Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * remove de-dup from nsAddrs and test Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * remove de-dup from findServices / test Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
parent
c840caf1ef
commit
272ccb195d
16 changed files with 374 additions and 182 deletions
|
@ -643,8 +643,9 @@ var epsIndex = map[string][]*object.Endpoints{
|
|||
},
|
||||
},
|
||||
},
|
||||
Name: "svc1",
|
||||
Name: "svc1-slice1",
|
||||
Namespace: "testns",
|
||||
Index: object.EndpointsKey("svc1", "testns"),
|
||||
}},
|
||||
"svcempty.testns": {{
|
||||
Subsets: []object.EndpointSubset{
|
||||
|
@ -655,8 +656,9 @@ var epsIndex = map[string][]*object.Endpoints{
|
|||
},
|
||||
},
|
||||
},
|
||||
Name: "svcempty",
|
||||
Name: "svcempty-slice1",
|
||||
Namespace: "testns",
|
||||
Index: object.EndpointsKey("svcempty", "testns"),
|
||||
}},
|
||||
"hdls1.testns": {{
|
||||
Subsets: []object.EndpointSubset{
|
||||
|
@ -674,8 +676,9 @@ var epsIndex = map[string][]*object.Endpoints{
|
|||
},
|
||||
},
|
||||
},
|
||||
Name: "hdls1",
|
||||
Name: "hdls1-slice1",
|
||||
Namespace: "testns",
|
||||
Index: object.EndpointsKey("hdls1", "testns"),
|
||||
}},
|
||||
"hdlsprtls.testns": {{
|
||||
Subsets: []object.EndpointSubset{
|
||||
|
@ -686,8 +689,9 @@ var epsIndex = map[string][]*object.Endpoints{
|
|||
Ports: []object.EndpointPort{{Port: -1}},
|
||||
},
|
||||
},
|
||||
Name: "hdlsprtls",
|
||||
Name: "hdlsprtls-slice1",
|
||||
Namespace: "testns",
|
||||
Index: object.EndpointsKey("hdlsprtls", "testns"),
|
||||
}},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue