Commit Graph

593 Commits

Author SHA1 Message Date
Ivan Ka
b20025e311
feat(fqdn): improve ExecTemplate and add more functions (#5406)
* chore(fqdn): fqdn move ExecTemplate to fqdn. add proper tests

* chore(fqdn): fqdn move ExecTemplate to fqdn. add proper tests

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

* chore(fqdn): fqdn move ExecTemplate to fqdn. add proper tests

Co-authored-by: Lino Layani <39967417+linoleparquet@users.noreply.github.com>

* chore(fqdn): fqdn move ExecTemplate to fqdn. add proper tests

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

* chore(fqdn): fqdn move ExecTemplate to fqdn. add proper tests

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

---------

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
Co-authored-by: Lino Layani <39967417+linoleparquet@users.noreply.github.com>
Co-authored-by: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com>
2025-05-19 12:35:22 -07:00
tom
14ea50300e
feat(cloudflare): Suppport DNS record comments (#5411)
* feat(cloudflare): Suppport DNS record comments

* Provide comment flag example
2025-05-19 00:43:15 -07:00
Ivan Ka
791601e2e3
chore(codebase): add nilnil return check (#5415)
* chore(code-quality): added nilnil return check

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

* chore(code-quality): added nilnil return check

---------

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
2025-05-19 00:19:16 -07:00
Kubernetes Prow Robot
09d49a106a
Merge pull request #5399 from kevinvalk/expose-internal-ipv6-services
fix(source): expose internal ipv6 flag on headless service
2025-05-17 00:57:13 -07:00
Ivan Ka
4ea5f9df60
chore(source/traefik_proxy): code coverage and refactoring (#5380)
Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
2025-05-14 23:38:48 -07:00
Kevin Valk
e379fe172e
refactor: handle internal IPv6 addresses consistently with --expose-internal-ipv6 flag throughout all sources 2025-05-14 17:15:47 +02:00
ivan katliarchuk
68b1cdbd3c
chore(source): code cleanup
Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
2025-05-13 07:27:38 +01:00
Mathew Kamkar
f08289d27c
feat: additional template functions (#3949)
* additional template functions

* lint

* fix typeo

* status check fixes

* lint fix try 2

* lint fix try 3

* tests for individual functions
2025-05-12 23:19:16 -07:00
ivan katliarchuk
fe83c0d2d0
chore(source): code cleanup 2025-05-12 14:21:28 +01:00
Ivan Ka
de6fb9d385
fix(log testing): re-use logger library testing functionality (#5368)
* fix(log testing): re-use logger library testing functionality

* fix(log testing): re-use logger library testing functionality

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

* fix(log testing): re-use logger library testing functionality

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

---------

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
2025-05-12 01:49:15 -07:00
Kubernetes Prow Robot
2f165e878c
Merge pull request #5374 from gofogo/code-cleanup-vv0
chore(code-quality): refactoring and linter fixes
2025-05-10 10:57:14 -07:00
Kubernetes Prow Robot
a509a9b4f1
Merge pull request #5378 from gofogo/chore-code-quality-source-pod
test(source/pod): improve code coverage
2025-05-10 07:43:14 -07:00
Ivan Ka
51d063ad28
chore(fqdn-template): fqdn templating move to specific folder and update documentation (#5354)
* chore(fqdn): fqdn move to specific folder and update documentation

* chore(fqdn): fqdn move to specific folder and update documentation

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

* chore(fqdn): fqdn move to specific folder and update documentation

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

* chore(fqdn): fqdn move to specific folder and update documentation

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

* chore(fqdn): fqdn move to specific folder and update documentation

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-05-10 05:53:22 -07:00
Kubernetes Prow Robot
b5a7ae1626
Merge pull request #5349 from kashalls/fix-gateway-maybe
fix(gateway-api): ensure to use only latest generation with HTTPRoutes
2025-05-10 05:53:15 -07:00
ivan katliarchuk
e22c451744
feat(code-quality): source/pod improve code coverage
Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
2025-05-10 13:23:16 +01:00
ivan katliarchuk
9f8f30882b
chore(source): code cleanup
Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
2025-05-09 08:21:31 +01:00
Lino Layani
7aaa274f17
test(source): cover unhappy paths (#5369)
* Improve test coverage store

* Improve test coverage
2025-05-08 10:55:15 -07:00
Tyler Holinka
57ba99094d
fix: add unit test for route never being accepted 2025-05-04 14:28:15 -05:00
Jordan Jones
059daadcfe
chore: remove unneccessary new line 2025-05-03 11:43:15 -07:00
Jordan Jones
0dcd6c922c
chore: move into pre-existing conditions check 2025-05-03 11:42:21 -07:00
Tyler Holinka
1ad804caea
fix: add unit tests for generation check 2025-05-03 05:11:04 -05:00
Jordan Jones
219e19fee7
fix: check that parent generation matches current generation. 2025-05-02 20:10:11 -07:00
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
ivan katliarchuk
9f427e5622
chore(source): code cleanup 2025-04-16 13:50:04 +01: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