Commit Graph

66 Commits

Author SHA1 Message Date
Ivan Ka
00fde1e510
chore(source/crd): add labels without looping over (#5492) 2025-06-03 00:02:38 -07:00
Michel Loiseleur
d0e6a9075e
chore(crd): move code to apis/v1alpha1 (#5446)
* chore(crd): move code to `api/v1alpha1`

* fix license check

* fix linter

* remove obsolete exclusion on linter
2025-05-23 08:16:37 -07:00
Michel Loiseleur
2481c07e95
chore(crd): use conventional paths and update controller-gen to v0.17.2 (#5287)
* chore(crd): update controller-gen to v0.17.2

* review: only one crd manifest

* set crd in expected paths
2025-05-04 12:53:56 -07:00
Julilla Paul
f593c08aa9
chore: refactor CheckEndpoint into helper functions 2025-02-10 11:46:55 -08:00
Julilla Paul
3b2453bc1a
chore: add debug logs and make integer parsing strict 2025-02-10 11:35:07 -08:00
Julilla Paul
10f4a26184
chore: make CheckEndpoint an Endpoint type method 2025-02-10 11:20:39 -08:00
Julilla Paul
ad9f300589
chore: move validation to endpoint 2024-11-20 13:46:57 -08:00
Morre
c0a183b006
fix: re-add api-approved.kubernetes.io annotation 2024-05-21 09:27:03 +02:00
Leonardo Quatrocchi
05ca35e228 Merge remote-tracking branch 'origin/master' into bugfix/group-endpoints-per-hosted-zone-for-aws 2024-04-22 20:36:38 -03:00
dongjiang
b5ef2fc913
Update endpoint/endpoint.go
Co-authored-by: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com>
2024-04-07 09:44:08 +08:00
Leonardo Quatrocchi
d9b743922a Specify and clarify root cause of issue 4241 2024-04-06 03:25:05 -03:00
Leonardo Quatrocchi
4fb2f2e283 Specific bugfix near the root cause for duplicated deletes on plan.go 2024-04-05 01:29:38 -03:00
Leonardo Quatrocchi
deba1ea445 Fix suggestions 2024-04-04 21:15:48 -03:00
leonardocaylent
3ca4d0250f
Update endpoint/endpoint.go
Co-authored-by: Eric Bailey <yurrriq@users.noreply.github.com>
2024-04-04 16:35:21 -03:00
Leonardo Quatrocchi
6066b700b8 Fix for duplicated endpoints 2024-04-04 01:24:05 -03:00
dongjiang1989
dc9e0a5816
dongjiang, fix ipv6 shortener and expander equal
Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
2024-03-31 19:51:28 +08:00
Leonardo Quatrocchi
2b3da1b608 Fix for duplicated endpoints and unit tests 2024-03-29 23:27:25 -03:00
Leonardo Quatrocchi
7fe2d3f069 Fix for duplicated endpoints and unit tests 2024-03-29 03:39:17 -03:00
Leonardo Quatrocchi
82046ccb15 Removing comments and clean up 2024-03-16 15:05:59 -03:00
Leonardo Quatrocchi
0ca279694a Fix Lint 2024-03-16 11:41:26 -03:00
leonardocaylent
30c9e77765
Fix lint 2024-03-16 00:00:00 -03:00
leonardocaylent
a3826d541b
Update endpoint.go with Key function 2024-03-15 22:56:02 -03:00
Leonardo Quatrocchi
294b4c673e Fix format on aws and endpoint files 2024-03-05 02:35:13 -03:00
Leonardo Quatrocchi
846f4b40fa Going back to endpoint.go 2024-03-05 02:27:20 -03:00
Joel Studler
2fdc7354c0 Add unit tests for NAPTR and invalid endpoints 2024-01-27 13:16:53 +01:00
Kyle Cronin
20bff0aae5 Remove EndpointFilterInterface 2023-08-16 23:48:30 -04:00
Kyle Cronin
7fb144d8d8 Fix planning for multi-cluster dual stack record types
When AAAA multi-target / dual stack support was
added via #2461 it broke ownership of domains across
different clusters with different ingress records types.

For example if 2 clusters manage the same zone,
1 cluster uses A records and the other uses CNAME
records, when each record type is treated as a separate
planning record, it will cause ownership to bounce back
and forth and records to be constantly created and
deleted.

This change updates the planner to keep track of multiple
current records for a domain. This allows for A and AAAA
records to exist for a domain while allowing record type
changes.

The planner will ignore desired records for a domain that
represent conflicting record types allowed by RFC 1034 3.6.2.
For example if the desired records for a domain contains
a CNAME record plus any other record type no changes for
that domain will be planned.

The planner now contains an owned record filter provided
by the registry. This allows the planner to accurately plan
create updates when there are record type changes between
the current and desired endpoints. Without this filter the
planner could add create changes for domains not owned
by the controller.
2023-08-15 19:37:50 -04:00
John Gardiner Myers
a9ae5ea43a Add SetIdentifier to EndpointKey 2023-06-18 16:47:37 -07:00
John Gardiner Myers
4417ad4894 Move EndpointKey to endpoints package 2023-06-18 16:47:37 -07:00
John Gardiner Myers
beb893df7d Address review comment 2023-06-12 21:28:18 -07:00
John Gardiner Myers
55bbb29f55 Route53 update configuration of target health checks 2023-06-09 17:11:28 -07:00
John Gardiner Myers
4b15f20e76 Simplify GetProviderSpecificProperty 2023-06-09 07:33:41 -07:00
Kubernetes Prow Robot
3346b4e53c
Merge pull request #3519 from Sewci0/feature/mx-support
Add support for MX records in Azure, GCP and AWS
2023-05-15 12:13:07 -07:00
Skyler Mäntysaari
6f42a8a2da Initial IPv6 support 2023-03-30 17:49:28 -07:00
John Gardiner Myers
94d09b37dc Separate plan by record type 2023-03-30 17:47:59 -07:00
Seweryn Chlewicki
205e8c0334
Add support for MX records in Azure, GCP and AWS 2023-03-30 20:32:32 +01:00
Ole Markus With
7dbf503fe1 Don't create endpoint if attempting to create one with invalid dns name 2022-09-10 12:31:13 +02:00
Will Hegedus
b5d01eed1a feat: add debug logging for IP addr parse errors
Log whenever a target is not able to be parsed as an IP address. This is expected
to occur fairly often (for example, with CNAME targets), but allows more visibility
into how targets are being compared.

NOTE: depending on the number and type of targets, this could be quite noisy.
2022-06-06 13:06:43 -04:00
Will Hegedus
0c8f6a69bd feat!: handle IP address comparison
Previously there was no distinction between an IP address and any other string
when doing a comparison to determine which is "less" when determining which endpoint to actually create.

This explicitly handles IP addresses and will always prefer
them over non-IP addresses when determining which of two targets is less.
2022-04-20 13:35:28 -04:00
Christian Groschupp
f9145981c3
infoblox: also create a ptr entry 2021-09-30 15:42:14 -07:00
Dinar Valeev
a143a6cd59 Generate CRD with controller-gen
Signed-off-by: Dinar Valeev <dinar.valeev@absa.africa>
2021-03-08 20:12:05 +01:00
Rob Selway
0a9daa9e9b Case insensitivity when comparing targets 2021-02-14 13:40:25 +00:00
windayski
262822e2f6 fix typos 2020-10-30 03:28:57 +00:00
Yury Tsarev
904d8e4c87 NS record support 2020-10-12 20:23:17 +02:00
Lucas Servén Marín
a54ee2da37
*: fix goreportcard golint warnings
This commit applies fixes for the golint warnings shown on goreportcard.

Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
2020-05-07 17:22:36 +02:00
Alfred Krohmer
6681a3a358 Add support for all AWS Route53 routing policies; add additional SetIdentifier abstraction layer
This adds support for all AWS Route53 routing policies, namely:
* simple (default)
* weighted
* latency
* failover
* geolocation
* multi value answer

These routing policies allow to create multiple records with the same
name, but different "SetIdentifiers". Therefor, as a prerequisite for
implementing support for above routing policies, there is a new
"abstraction layer" added that handles this SetIdentifier by adding a
new attribute in the Endpoint struct and adding another level in the
plan table.
2019-09-10 20:47:36 +02:00
Erik Swets
e0e7a9defd Allow setting Cloudflare proxying by annotation 2018-11-16 12:52:47 +01:00
Martin Linkhorst
f21f45b15d
fix(aws): correctly populate target health check on existing records 2018-10-02 17:44:02 +02:00
shashidharatd
ddef0a9ccc Add wrapper structure for Endpoint in sync with definition of CRD 2018-08-22 19:37:21 +05:30
Gary Kramlich
2ee4b2e533 Add support for NodePort services (#559)
* First stab at NodePort support. Testing incomplete

* Fix up the unit tests

* Remove some deadcode in the unittests

* gather node ips once and add support for srv records

* Make sure we match gofmt simple

* Move the nodes to the testcase and add a test for clusters that only have internal ip addresses

* Somehow forgot about the weight field in the records

* Add SRV as a supported record type
2018-06-14 18:08:05 +02:00