Commit Graph

9 Commits

Author SHA1 Message Date
Arthur Outhenin-Chalandre 49f47d9503
remove wildcard query functionality (#25)
Like the kubernetes plugin we remove wildcard queries support.

Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>
2025-01-07 15:59:36 -05: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
Arthur Outhenin-Chalandre 879509bbbe
Fix error NXDOMAIN for TXT lookups (#20)
Apply similar fixes done to the kubernetes plugin in coredns:
c3228615e0

Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>
2025-01-07 08:27:39 -05:00
Chris O'Haver 540b175ac5
Merge pull request #22 from MrFreezeex/handle-soa
Handle SOA query
2025-01-07 08:26:23 -05:00
Arthur Outhenin-Chalandre 7bf403db55
add test to make sure querying endpoints from a service is not allowed
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>
2024-11-28 12:10:28 +01:00
Arthur Outhenin-Chalandre 1fb752aa97
Handle SOA query
Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>
2024-11-24 17:32:00 +01:00
Chris O'Haver ee180a8a0c
Update multicluster_handler_test.go 2021-11-30 10:43:24 -05:00
Akash Rungta e15d85dfa0 Remove the reference to the package github.com/vanekjar/coredns-multicluster/ 2021-11-23 14:40:42 -08:00
Jaromir Vanek 5d20a951dd Add unit test coverage 2021-11-08 21:47:51 -08:00