Commit Graph

570 Commits

Author SHA1 Message Date
Ivan Ka
ba64e8bb01
chore(deps): code cleanup, do not use pkg/errors (#5335)
Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
2025-04-29 01:17:57 -07:00
Michel Loiseleur
972bdfcadd test(source): fix data race on node_test 2025-04-27 22:03:10 +02:00
ivan katliarchuk
abdf8bbc02
chore(refactore): added lint checks
Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
2025-04-23 08:22:43 +01:00
Kubernetes Prow Robot
26035196ef
Merge pull request #5273 from gofogo/fix-flakey-test-logging
test(log): fix random race detection
2025-04-16 12:27:10 -07:00
Valentin Flaux
c3f0cd668f
fix cloudflare regional hostnames
Implements create & delete of regional hostnames for A, AAAA & CNAME
records.
Implements "external-dns.alpha.kubernetes.io/cloudflare-region-key"
annotation.
2025-04-12 10:59:47 +02:00
ivan katliarchuk
b7879ccbd2
fix(log testing): fix logs
Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
2025-04-11 08:48:41 +01:00
David Winiarski
f27da2b10e
remove unnecessary variable 2025-04-09 05:52:04 -06:00
David Winiarski
9854a0ecb4
validate group and kind on the spec.parentRef. Move check into gwRouteHasParentRef 2025-04-09 05:52:04 -06:00
David Winiarski
1476fe11a1
update comment on gwRouteIsAccepted 2025-04-09 05:52:04 -06:00
David Winiarski
127122de09
update gatewayRoute to contain spec.parentRefs instead of extracting that directly from each route during the resolve stage 2025-04-09 05:52:04 -06:00
David Winiarski
cb4b6a222e
add missing lookup for TLSRoute 2025-04-09 05:52:04 -06:00
David Winiarski
94278ae67c
update all route tests to have a valid spec.parentRef entry 2025-04-09 05:52:04 -06:00
David Winiarski
5a1aef4d94
use route parentRef from spec instead of observedGeneration to select correct status conditions to evaluate 2025-04-09 05:52:04 -06:00
David Winiarski
4386d8ba94
only consider accepted gateway routes if the condition generation matches the current one 2025-04-09 05:52:04 -06:00
Michel Loiseleur
bb5185966c chore(ci): fix random data race failure on source/node test 2025-04-09 09:21:02 +02:00
Markus
c0a9eed521
feat(source): optional exclusion of unschedulable nodes (#5045)
* feat(source/node): Make exclusion of unschedulable Nodes configurable

This fixes a behavioral regression introduced in #4761, where
nodes that were previously added to DNS are removed when they are considered
unschedulable, for example due to automated maintenance tasks.

This change will introduce a new flag called `exclude-unschedulable`, which
defaults to `true` in order to keep in line with the current behavior.
However, it would also be reasonable to restore the initial behavior before

* Allow testing for expected log entries in testNodeSourceEndpoints

This commit adds the required logic to be able to test for
the existence (and absence) of certain log messages
in testNodeSourceEndpoints. As an example, this is implemented
for the tests around excludeUnschedulable.

A side effect of using LogsToBuffer is that tests can't run in
parallel due to the log buffer being shared across all
parallel test cases. As such, these specific tests are now executed
one after another.

* Ensure logging is only hooked for tests that require it

* Document new exclude-unschedulable flag for nodes source
2025-04-07 07:34:40 -07:00
Michel Loiseleur
3835c62bb6 chore(ci): update linter to v2.0.2 2025-04-02 08:53:54 +02:00
Ivan Ka
65d534e4a1
chore(code-cleanup): move logic away from main.go add tests (#5222)
* feat(code cleanup): remove from main.go

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>

* chore(code-cleanup): move logic from main.go add tests

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>

* chore(code-cleanup): move logic from main.go add tests

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>

* chore(code-cleanup): move logic from main.go add tests

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>

* chore(code-cleanup): move logic from main.go add tests

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>

* chore(code-cleanup): move logic away from main.go add tests

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>

* chore(code-cleanup): move logic away from main.go add tests

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>

* chore(code-cleanup): move logic away from main.go add tests

Co-authored-by: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com>

* chore(code-cleanup): move logic away from main.go add tests

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>

* chore(code-cleanup): move logic away from main.go add tests

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>

---------

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
Co-authored-by: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com>
2025-03-31 15:58:43 -07:00
Ivan Ka
3fa5fc23b7
fix(node): logger test fixed (#5232)
Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
2025-03-28 02:50:45 -07:00
hjoshi123
719cc78efc
removing reduntant code 2025-03-26 07:49:00 -06:00
hjoshi123
04f1661967
renaming variable 2025-03-25 20:49:11 -06:00
hjoshi123
af3a7dfef6
added new tests to handle edge case 2025-03-25 20:45:25 -06:00
hjoshi123
df517cfc9b
detailed documentation with no-expose 2025-03-24 08:20:17 -06:00
hjoshi123
bf43ddf81a
added warn log 2025-03-20 09:35:39 -06:00
hjoshi123
1bf31daf4c
edited docs and made new test 2025-03-19 21:38:52 -06:00
hjoshi123
1d61159155
docs: added documentation in node source 2025-03-18 08:01:06 -06:00
hjoshi123
794cdd2b95
fix: fixing ci lint 2025-03-17 20:52:28 -06:00
hjoshi123
ed2419a5ee
fix: removing fmt.Printf 2025-03-17 20:33:17 -06:00
hjoshi123
87e3c4bc9c
feat: added expose internal ipv6 flag 2025-03-17 08:37:06 -06:00
Steven Kreitzer
724b86b8b8
feat(source): fitler by gateway name (#5160)
* feat: filter by gateway name

Signed-off-by: Steven Kreitzer <skre@skre.me>

* address comments

* address comments

* address comments

---------

Signed-off-by: Steven Kreitzer <skre@skre.me>
2025-03-12 01:51:47 -07:00
Rich
7c23e01e31
feat(aws): always create AAAA alias records in route53 (#5111)
* First pass based on existing PR, what is currently on master and some
extra tests.

* Try to resolve AWS service documentation

* Add documentation on how to opt-out of AAAA record creation

* Address documentation concerns

* Add some IPv6 tests to sources

* Make recommended changes to documentation
2025-03-03 00:21:00 -08:00
Kubernetes Prow Robot
e665a734bf
Merge pull request #5087 from conduitxyz/mrozentsvayg/cloudflare-custom-hostname
feat(cloudflare): custom hostname and fix apex
2025-02-19 07:12:27 -08:00
Mikhail Rozentsvayg
739d34d7c0 cover source.go getProviderSpecificAnnotations() with unit tests 2025-02-18 21:28:59 -08:00
Mikhail Rozentsvayg
799ec6d2c9 review suggestions 2025-02-18 14:54:13 -08:00
Kubernetes Prow Robot
4182600b6c
Merge pull request #5096 from drcapulet/alexc-fix-debug-log
fix(source): debug log on gateway target detection
2025-02-18 14:00:27 -08:00
Alex Coomans
e6d03edd68
fix(source): debug log on gateway target detection
This code referenced the endpoints variable which was updated with each
resource leading to confusing debug messages - this sets up a new array
each iteration to log just the records from the relevant Gateway resource.
2025-02-18 13:31:57 -06:00
Mikhail Rozentsvayg
b8c09b89cb merge upstream 2025-02-18 08:54:35 -08:00
Dan Markhasin
caaf22e60d
Merge branch 'kubernetes-sigs:master' into endpoints-informer 2025-02-18 18:42:21 +02:00
Ivan Ka
99b9d0d3db
chore(formatting): fix infected files with correct formatting (#5099)
* chore(format): fix go formatting

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>

* chore(format): linter check configuration

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>

* chore(formatting): fix infected files with correct formatting

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>

* chore(formatting): fix infected files with correct formatting

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>

* chore(formatting): fix infected files with correct formatting

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>

* chore(formatting): fix infected files with correct formatting

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>

* chore(formatting): fix infected files with correct formatting

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>

---------

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
2025-02-18 01:40:12 -08:00
Mikhail Rozentsvayg
147df48ff5 Merge remote-tracking branch 'upstream/master' into mrozentsvayg/cloudflare-custom-hostname 2025-02-17 09:39:41 -08:00
Dan Markhasin
5d53d7ceda
Merge branch 'kubernetes-sigs:master' into endpoints-informer 2025-02-15 16:33:13 +02:00
Kubernetes Prow Robot
ce2833cb5e
Merge pull request #4889 from jtszalay/fix/4888
fix(dedup): records with different type are not duplicates
2025-02-15 01:00:21 -08:00
Kubernetes Prow Robot
ba98af860d
Merge pull request #4522 from plentymarkets/informer-gateways
fix: use informer for istio gateways
2025-02-14 08:58:23 -08:00
Dan Markhasin
b0bbe5142d update service.md, service.go 2025-02-11 15:30:50 +02:00
Mikhail Rozentsvayg
88fd2aa3a7 initial custom hostnames support 2025-02-09 10:01:35 -08:00
James Szalay
5461d9f305 Address PR comments
* Add nil check
* strings.Join
* Add test case
2025-02-09 15:34:55 +00:00
Dan Markhasin
87464189b3 Enable reconcile on endpoint events 2025-02-02 23:42:50 +02:00
Kubernetes Prow Robot
a61780280d
Merge pull request #4782 from foyerunix/reverse-for-all-pods
feat(source): allow to register all pods and their associated PTR record
2025-01-28 07:51:24 -08:00
Vivian Ta
5c14cd23fd fix: add mikejoh's commit changes (a70d5d0, #4996) for when TSServer is not ready 2025-01-21 11:25:42 -08:00
visokoo
429400ac66
Merge branch 'kubernetes-sigs:master' into add-f5-transport-server-source 2025-01-21 10:06:54 -08:00