* 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>
As this type of query is not allowed we make sure it actually is with a
new test.
Quoting the MCS-API KEP with the explanation of why this is not allowed:
While we reserve the form <clusterid>.<svc>.<ns>.svc.clusterset.local. for
possible future use, both ClusterSetIP Services and Multicluster Headless Services
are specified to explicitly disallow using this form to create DNS records that
target all 1+N backends in a specific cluster.
Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>