Commit Graph

3 Commits

Author SHA1 Message Date
Arthur Outhenin-Chalandre edbcb64886
object: fix object cleanup (#27)
This commit add object cleanup to be consistent with similar code in
the kubernetes plugin.

It also does a clone of the EndpointSlice labels so that it's not erased by
the function `EndpointSliceToEndpoints` from the kubernetes plugin fixing an
important bug in the multicluster code as it was previously not able to
retrieve any labels which essentially prevented any interaction with headless
services.

Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>
2025-03-26 08:30:25 -04:00
Arthur Outhenin-Chalandre 92cfbae0ca
Refactor object to share code from the kubernetes plugin (#17)
* Add go.mod

Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>

* Refactor the object to share kubernetes plugin objects

It also removed the unused watch endpointslicev1beta1 functions,
make sure everything is gofmt-ed and rewrite the import for consistency
across the plugin code.

Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>

* Add clusterId check in endpointsEquivalent

Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>

---------

Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>
2025-01-07 08:28:36 -05:00
Jaromir Vanek 37668da19c Full support for headless services 2021-11-04 13:38:02 -07:00