Commit Graph

570 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
fb85418d03
Merge pull request #4094 from KarstenSiemer/fix/istio_gateway/AppendExternalIPsToTargets
fix(istio): support for ExternalIPs in Istio resources
2024-01-05 20:04:56 +01:00
Kubernetes Prow Robot
99ef39e99d
Merge pull request #4092 from fad3t/fix-ambassador-resolve-hostname
fix(ambassador): don't resolve LB hostname
2023-12-30 13:13:16 +01:00
Kubernetes Prow Robot
97a8fa3195
Merge pull request #4076 from k8r-io/fix-hangs-on-traefik-listeners
Fix timeout for traefik-proxy source
2023-12-27 17:22:52 +01:00
Kristopher Kirkland
f80f00688d Lint fix 2023-12-20 22:17:10 -06:00
Andy Bursavich
a50a4f9aba gateway-api: make wildcards suffix matchers (e.g. match multiple labels) 2023-12-20 14:12:24 -08:00
Andy Bursavich
5da9393b58 gateway-api: upgrade from v0.7.1 to v1.0.0 2023-12-18 16:35:07 -08:00
Karsten Siemer
87a53778a8
fix(istio): support for ExternalIPs in Istio resources
 Add support for ExternalIPs in Istio Gateway and VirtualService
ℹ️ This commit extends Istio Gateway and VirtualService resources
to support ExternalIPs. The changes include:
- Checking if service has ExternalIPs defined
- If yes, adding them to the list of targets
- If not, continuing with the existing process

👌 Now you can have your Istio resources use `externalIPs` too! 🎉

Not to be `ip`-percritical, but don't we all love an `ip`grade! 🎈

Signed-off-by: Karsten Siemer <karsten.siemer@sda.se>
2023-12-06 08:52:35 +01:00
Frederic Mereu
fecd4273af
fix(ambassador): don't resolve LB hostname
Signed-off-by: Frederic Mereu <frederic.mereu@gaming1.com>
2023-12-05 09:56:32 +01:00
Kristopher Kirkland
21398ecb7f Add test cases for Traefik API group flags 2023-11-29 12:14:59 -06:00
Kristopher Kirkland
9015377c12 Add flags to disable each of the Traefik API groups 2023-11-29 12:14:59 -06:00
Mikkel Oscar Lyderik Larsen
b48bb26c5f Make routegroup client IPv6 compatible
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
2023-11-27 11:53:42 +01:00
Kubernetes Prow Robot
e1adc9079b
Merge pull request #3978 from nefelim4ag/master
fix(httpProxy): drop status==valid filter
2023-11-15 13:37:57 +01:00
Kubernetes Prow Robot
fc87eaff72
Merge pull request #4048 from siliconsheep/fix-google-srv-records
fix(google): ensure trailing dot for SRV records
2023-11-15 13:12:45 +01:00
Kubernetes Prow Robot
c2eb6747f7
Merge pull request #4007 from nokia/master
service source uses externalIPs in ExternalName type if available
2023-11-15 13:12:27 +01:00
Kubernetes Prow Robot
04c4b505a6
Merge pull request #3964 from johngmyers/ignore-host-ann
Make --ignore-hostname-annotation flag more consistent
2023-11-15 13:12:18 +01:00
Dieter Bocklandt
6a3e97083c
fix(google): ensure trailing dot for SRV records 2023-11-14 17:12:56 +01:00
Nandor Galambosi
04e92c5556 Testcase for dualstack externalIPs added 2023-11-09 21:48:36 +01:00
Christopher Larivière
6d78df4388
add initial support for gw apis 1.0.0 GA
Signed-off-by: Christopher Larivière <lariviere.c@gmail.com>
2023-11-06 09:32:31 -05:00
Nandor Galambosi
d7b0dfd781 service source uses externalIPs in ExternalName type if available 2023-10-29 10:58:46 +01:00
Kubernetes Prow Robot
d8f408b8a5
Merge pull request #3734 from fad3t/ambassador-external-ip
feat: add support for external IP in ambassador host source
2023-10-27 13:22:02 +02:00
Timofey Titovets
42aaa58232 fix(httpProxy): drop status==valid filter 2023-10-14 14:29:15 +02:00
John Gardiner Myers
76a2ea17aa Make --ignore-hostname-annotation flag more consistent 2023-10-02 23:51:43 -07:00
John Gardiner Myers
17e9637f11
Refactor getTTLFromAnnotations() to not return error (#3939)
* Refactor getTTLFromAnnotations() to not return error

* Improve log messages
2023-10-02 03:56:45 -07:00
John Gardiner Myers
4a32aaec01 Implement target annotation for more sources 2023-09-27 23:16:14 -07:00
Kubernetes Prow Robot
f0b6260012
Merge pull request #3940 from johngmyers/node-filter
Support --label-filter for node source
2023-09-26 16:55:44 -07:00
Kubernetes Prow Robot
9ad15cf76f
Merge pull request #3938 from johngmyers/internal-service
Use ServiceIP for ClusterIP Services with internal-hostname annotation
2023-09-26 16:55:37 -07:00
John Gardiner Myers
75639b759c Support --label-filter for node source 2023-09-20 08:56:26 -07:00
Kubernetes Prow Robot
ed78d02793
Merge pull request #3762 from johngmyers/endpoint-label
Refactor setting the "resource" label into endpointsForHostname
2023-09-19 08:11:08 -07:00
John Gardiner Myers
7044fdf040 Use ServiceIP for ClusterIP Services with internal-hostname annotation 2023-09-16 17:33:30 -07:00
Kubernetes Prow Robot
d54fa589c2
Merge pull request #3480 from Megum1n/gloo-multiple-namespaces
Add support for multiple gloo namespaces in one External DNS instance
2023-09-15 22:10:13 -07:00
Kubernetes Prow Robot
fa332e9ed3
Merge pull request #3913 from johngmyers/doc-service
Document the Service source
2023-09-15 14:10:14 -07:00
Kubernetes Prow Robot
65db0c73ec
Merge pull request #3452 from BadLiveware/feature/allow-target-annotation-gateway
Allow annotation target override on gateway
2023-09-14 22:08:12 -07:00
Kubernetes Prow Robot
a10a80e9e5
Merge pull request #3451 from BadLiveware/fix/filter-endpoints-without-targets
Filter out entire endpoint if it ends up without targets after filtering in targetFilterSource
2023-09-14 21:52:11 -07:00
Kubernetes Prow Robot
435eb2056f
Merge pull request #3447 from Nefelim4ag/fix-node-ports
fix: nodePort #2704 - publish ready endpoints
2023-09-14 19:12:12 -07:00
John Gardiner Myers
da3fe0463c Document the Service source 2023-09-04 11:44:08 -07:00
Kubernetes Prow Robot
6a53959385
Merge pull request #3806 from johngmyers/doc-sources
Document the Ingress source
2023-09-04 01:03:48 -07:00
John Gardiner Myers
50e456997f Create the "resource" label for Ambassador Host 2023-08-29 11:36:30 -07:00
John Gardiner Myers
39955e556e Refactor setting the "resource" label into endpointsForHostname 2023-08-29 11:36:27 -07:00
Timofey Titovets
2a1f7a4de7 fix(source_test.go): add missing pod status tests 2023-08-29 19:16:51 +02:00
Timofey Titovets
f696c514db fix: nodePort #2704 - publish ready endpoints
fix: lowercase local functions
chore: reuse nodes, cut logs
2023-08-29 19:16:51 +02:00
Frederic Mereu
73862a802b
chore: reuse existing extractLoadBalancerTargets function 2023-08-12 13:49:17 +02:00
David Pait
1a5249af5e fix go conventions and ehance error messages 2023-08-09 08:41:50 -04:00
David Pait
bd989eeac4 fix imports 2023-08-09 08:35:00 -04:00
David Pait
0354d76ce0 add unit tests for gateway ingress source annotation 2023-08-08 11:51:42 -04:00
David Pait
f9600b7b35 move ingress annotation and parseIngress to gateway source 2023-08-08 11:51:42 -04:00
David Pait
08b592d2fd update istio gateway ingress source annotation constant 2023-08-08 11:51:42 -04:00
David Pait
cb2772c6ae add istio gateway ingress annotation support to gateway source 2023-08-08 08:05:42 -04:00
David Pait
362b233833 update istio gateway annotation name and docs 2023-08-08 08:04:51 -04:00
David Pait
1253afa11e add supoort for ingress backed istio gateways 2023-08-06 16:57:42 -04:00
John Gardiner Myers
0eb91e358d Document the Ingress source 2023-08-04 04:06:02 -07:00
Megum1n
70a43a4231
Merge branch 'master' into gloo-multiple-namespaces 2023-07-08 22:49:13 +02:00
Fredrik Larsson
712582caad Check len == 0 instead of nil 2023-07-06 11:36:34 +02:00
Fredrik Larsson
f8ae66efab Remove unnecessary test 2023-07-06 11:35:35 +02:00
Fredrik Larsson
76f8fbddcd Add tests for annotation override (gateway sources) 2023-07-05 09:52:26 +02:00
Fredrik Larsson
56eb581aa5 Allow annotation target override on gateway 2023-07-05 09:52:26 +02:00
John Gardiner Myers
4a40346d42 Remove flags and documentation for removed contour-ingressroute source 2023-07-04 16:37:37 -07:00
Fredrik Larsson
c4df1b18c9 Fix: File is not goimports-ed with -local 2023-07-01 14:11:49 +02:00
Christian Groschupp
33598b3c86 copy labels 2023-06-30 07:52:25 +02:00
Christian Groschupp
840338f77b add AAAA to test 2023-06-30 07:51:31 +02:00
Fredrik Larsson
3dbcb9cba1 Simplify interface implementation test for targetFilterSource 2023-06-29 22:38:17 +02:00
Fredrik Larsson
42dde17b1b Remove unneeded IsConfigured() method 2023-06-29 22:30:26 +02:00
Fredrik Larsson
05bb165ffa Run tests via a Mock targetNetFilter instead of the actual one 2023-06-29 22:28:14 +02:00
Fredrik Larsson
d7d5a2d404 Move echoSource into targetfiltersource_test.go 2023-06-29 22:28:14 +02:00
Fredrik Larsson
8533cb229a Fix file name spelling 2023-06-29 22:28:14 +02:00
Fredrik Larsson
e3fbc7eb30 Add logs 2023-06-29 22:28:14 +02:00
Fredrik Larsson
af7b072405 Filter out endpoints if targetfiltersource filters out all targets 2023-06-29 22:28:14 +02:00
Fredrik Larsson
98fe58b27e Add tests for targetfiltersource 2023-06-29 22:28:14 +02:00
Fredrik Larsson
6a33a653a1 Add echo source for testing 2023-06-29 22:28:14 +02:00
Christian Groschupp
fd8c42732d support cnames and aaaa for default-targets 2023-06-29 16:06:02 +02:00
Frederic Mereu
f9099b8bfc
feat: add support for external IP in ambassador host source 2023-06-26 13:40:41 +02:00
John Gardiner Myers
039f1a91fb refactor: simplify assignment to Service target list 2023-06-25 14:00:36 -07:00
John Gardiner Myers
4ee8bae85c refactor: don't iterate over load balancer if not using result 2023-06-25 12:28:23 -07:00
Megum1n
41d3de5364
Merge branch 'master' into gloo-multiple-namespaces 2023-06-24 02:11:35 +02:00
Kubernetes Prow Robot
ae0c06e3e6
Merge pull request #3648 from johngmyers/dynamodb
Add DynamoDB registry implementation
2023-06-23 13:03:07 -07:00
Michel Loiseleur
17ca22c309 fix test on istio 2023-06-19 11:22:41 +02:00
Michel Loiseleur
4da80b2ffb partial fix on istio 2023-06-19 10:06:05 +02:00
John Gardiner Myers
4417ad4894 Move EndpointKey to endpoints package 2023-06-18 16:47:37 -07:00
Michel Loiseleur
c9cf1e9e1f
Merge branch 'master' into deps/dependabot 2023-06-17 22:58:58 +02:00
Kubernetes Prow Robot
d468a339f0
Merge pull request #3686 from rumstead/fix/crashback-virtual-service-no-gateway
fix: extdns crashes when virtual service points to nonexistent …
2023-06-17 09:10:20 -07:00
rumstead
4dd3de68e7 fix: extdns crashes when virtual service points to nonexistent gateway
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>

updating test

Update source/istio_virtualservice_test.go

Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>

Update source/istio_virtualservice_test.go

Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
2023-06-17 10:36:38 -04:00
Kubernetes Prow Robot
8e2140baab
Merge pull request #3055 from ThomasK33/master
Add support for Traefik 2's IngressRoute, IngressRouteTCP and IngressRouteUDP
2023-06-16 13:08:19 -07:00
Michel Loiseleur
e06ed8cc5d build(deps): bump dev-dependencies group with 40 updates 2023-06-16 17:15:35 +02:00
Kubernetes Prow Robot
561273d386
Merge pull request #3476 from Megum1n/master
Gloo: Add support for listener.metadataStatic
2023-06-16 04:24:18 -07:00
Thomas Kosiewski
9105dc020b
Added missing GVKs for store tests
Signed-off-by: Thomas Kosiewski <thoma471@googlemail.com>
2023-06-14 18:27:39 +02:00
Thomas Kosiewski
bd67905307
Added support for new traefik CRDs
Signed-off-by: Thomas Kosiewski <thomas.kosiewski@loft.sh>
2023-06-14 18:08:10 +02:00
Kubernetes Prow Robot
e872bda5af
Merge pull request #3677 from kubernetes-sigs/refactor/use-error-wrapping
refactor: use always fmt.Errorf("...: %w", err), instead of %s or %v
2023-06-12 07:53:50 -07:00
Michel Loiseleur
7fa786733a review: remove seed and init() func 2023-06-12 12:10:49 +02:00
Sandor Szücs
dc069cc10f
refactor: use always fmt.Errorf("...: %w", err), instead of %s or %v
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
2023-06-12 10:44:29 +02:00
Michel Loiseleur
de20b13879 add golangci-lint update 2023-06-09 12:04:58 +02:00
Thomas Kosiewski
f0ac655838
Style changes & fixes
Signed-off-by: Thomas Kosiewski <thoma471@googlemail.com>
2023-06-06 18:51:59 +02:00
Thomas Kosiewski
95abe994c4
Merge remote-tracking branch 'kubernetes-sigs/master' 2023-06-01 18:49:38 +02:00
megum1n
ca5d74d545
Add separate test for metadata static virtual host 2023-05-29 01:05:47 +02:00
Megum1n
bc7e1eddbe
Merge branch 'kubernetes-sigs:master' into master 2023-05-29 00:10:37 +02:00
Kubernetes Prow Robot
fd501ddd7c
Merge pull request #3600 from johngmyers/ipv6-headless
Support AAAA records from headless services
2023-05-19 06:44:30 -07:00
Kubernetes Prow Robot
8c1be68e87
Merge pull request #3603 from Pluggi/pod-multiple-internal-hostnames
Allow multiple hostnames in internal annotation for pods
2023-05-17 03:12:35 -07:00
Antoine Bardoux
b17506cfa3 Remove unnecessary trailing newline 2023-05-16 15:43:28 +02:00
Antoine Bardoux
f385139abc Allow multiple hostnames in internal annotation for pods 2023-05-12 12:16:08 +02:00
Gabriel Martinez
599590c141
add AAAA tests 2023-05-11 12:05:54 +01:00
Gabriel Martinez
9bbebf6c07
Merge remote-tracking branch 'remote/master' into target_annotation_for_service 2023-05-11 11:53:20 +01:00
John Gardiner Myers
47a0f74f61 Add test for IPv6 ExternalName service 2023-05-10 13:23:53 -07:00
John Gardiner Myers
41c705e471 Support AAAA records from headless services 2023-05-10 13:23:51 -07:00
Kubernetes Prow Robot
3a788d6a44
Merge pull request #3588 from johngmyers/ipv6-external
IPv6 internal node IPs are usable externally
2023-05-10 13:17:14 -07:00
John Gardiner Myers
4745ddbb0e Address review comment 2023-05-09 19:42:56 -07:00
Megum1n
028656d649
Change variable type and description 2023-05-08 12:08:00 +02:00
John Gardiner Myers
683663e9c2 IPv6 internal node IPs are usable externally 2023-05-07 12:00:28 -07:00
Gabriel Martinez
3288cc2f98
feat(service): allow using target annotation 2023-05-06 14:48:54 +01:00
Arnaud Lefray
42077cd35a
ingress: ignore annotation when ingressclassname is non empty 2023-05-05 16:08:04 +02:00
Arnaud Lefray
e9fd86035d
fix: add missing record check to ingress tests 2023-05-04 15:44:14 +02:00
Arnaud Lefray
56773c0430
chore: merge with master 2023-05-04 15:23:10 +02:00
Arnaud Lefray
4a2b9c60ab
ingress: improve ingress class name filter testing
Signed-off-by: Arnaud Lefray <arnaud.lefray@gmail.com>
2023-05-04 15:10:46 +02:00
megum1n
63c826f62b
Remove whitespaces 2023-04-20 15:50:58 +02:00
Charles Xu
1d232c4b86 feat: resolve LB-type Service hostname to create A/AAAA instead of CNAME 2023-04-18 21:10:56 -07:00
Kubernetes Prow Robot
e6ec8ea329
Merge pull request #2220 from ericrrath/crd-source-event-handler
CRD source: add event-handler support
2023-04-13 23:20:39 -07:00
megum1n
ac605fa4ce
Rename gloo-namespace flag back to singular word 2023-04-13 23:00:26 +02:00
John Gardiner Myers
781ee3d71f Address review comments 2023-04-12 22:46:39 -07:00
John Gardiner Myers
258986c7ce Add test case for extracting IPv6 from Ingress status 2023-03-30 17:49:31 -07:00
John Gardiner Myers
6b20ba301c Remove unnecessary unit test changes 2023-03-30 17:49:31 -07:00
John Gardiner Myers
de1db3f03d Unit test fixes 2023-03-30 17:49:31 -07:00
Skyler Mäntysaari
6f42a8a2da Initial IPv6 support 2023-03-30 17:49:28 -07:00
John Gardiner Myers
06227c1fbf Make unit tests more strict about record type 2023-03-30 17:47:59 -07:00
Thomas Kosiewski
f527b54e2e Fixed store tests 2023-03-17 15:24:48 +01:00
Thomas Kosiewski
6ba9d3b221 Fixed error thrown by linter 2023-03-17 15:16:22 +01:00
Thomas Kosiewski
2dcbb2cfd2 Removed traefik as dependency 2023-03-17 15:16:22 +01:00
Thomas Kosiewski
4ecad141c2 Added exemption for wildcard only route rule 2023-03-17 15:16:11 +01:00
Thomas Kosiewski
b7016a0f38 Added tests for traefik source 2023-03-17 15:16:11 +01:00
Thomas Kosiewski
6c25133bce Updated store_test & helm chart clusterrole 2023-03-17 15:16:11 +01:00
Thomas Kosiewski
458b702762 Added traefik source 2023-03-17 15:15:41 +01:00
megum1n
3d48d66c91
Add support for multiple gloo namespaces in one External DNS instance 2023-03-15 02:33:00 +01:00
Megum1n
041ca372c8 Gloo: Add support for listener.metadataStatic 2023-03-14 17:16:25 +01:00
Mikael Johansson
9a76be0202 Add F5 VirtualServer source 2023-03-14 10:23:56 +01:00
Eric R. Rath
929e618935 --events controls CRD informer creation
mgruener suggested that the --events flag could be wired to control whether or
not the CRD source created and started its informer.  This commit makes that
change; good idea!
2023-02-27 12:34:16 -08:00
Andy Bursavich
13d978caeb gateway-api: upgrade from v0.5.1 to v0.6.0 and add GRPCRoute support 2023-01-04 08:18:35 -08:00
Andy Bursavich
ac6ce47b99 Bump k8s.io/{api,apimachinery,clientgo} from v0.25.2 to v0.26.0 2023-01-04 08:15:59 -08:00
Andy Bursavich
ad7e1509e0 gateway-api: patch route informer results with TypeMeta 2022-12-28 17:39:15 -08:00
Raffaele Di Fazio
31e6bb8578
CI linting fixes (#3205)
* ci linting fixes

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>

* remove staticcheck

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>

* disable naming rule

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>

* disable stylecheck too

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>

* linter errors fixes

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>

* re-add staticcheck

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>

* fixes various linting issues

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>

* fix imports

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>

* fix tlsconfig

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>

* fix alibabacloud

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>

* ioutil fixes

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>

* remove all references to ioutil

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>

* ignore linting for azure deprecated sdk

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>
2022-12-02 10:57:53 -08:00
ricoberger
d56ad7f683 Fix deletion of DNS Records for VirtualServices on error 2022-11-10 18:12:42 +01:00
Mikael Johansson
b9996e2627 Fix minor typo 2022-10-22 13:16:06 +02:00
Andy Bursavich
b0dc1739aa gateway-api: switch to v1beta1 apis where available 2022-09-21 09:01:30 -07:00
Andy Bursavich
a7a56b9380 gateway-api: upgrade from v0.4.3 to v0.5.0 2022-09-21 09:01:30 -07:00
Andy Bursavich
74ffff6c26 gofumpt 2022-09-20 20:48:57 -07:00
Ole Markus With
a1a9091cdf Ignore ambassador-hosts with invalid annotations
If e.g the ambassador service annotation points to an nonexisting service, external-dns will not update any DNS records. This PR makes external-dns ignore the host and carry on instead.
2022-09-07 19:38:36 +02:00
Ole Markus With
594519a09b Add test for ambassador source failing to fetch ambassador service 2022-09-07 19:38:25 +02:00
Kubernetes Prow Robot
e2b86a1146
Merge pull request #2693 from tobikris/add-target-net-filter
add target filters based on network
2022-08-02 01:38:15 -07:00
Kubernetes Prow Robot
de1db79bad
Merge pull request #2707 from hughhuangzh/add_ibmcloud_provider
Add IBM Cloud provider
2022-05-26 01:39:23 -07:00
Kubernetes Prow Robot
66e0d8c7fe
Merge pull request #2292 from abursavich/gateway-redo
Add Support for Gateway API Route Sources
2022-05-25 01:20:44 -07:00
Kubernetes Prow Robot
379fe6f554
Merge pull request #2215 from abursavich/istio-informer
Istio: Use existing VirtualService informer
2022-05-12 05:33:14 -07:00
hzhihui
2270904b9d
Merge branch 'master' into add_ibmcloud_provider 2022-05-09 19:24:03 +08:00
Alfred Krohmer
ea45b03972 Headless service: allow to specify target as NodeExternalIP or by annotation
If external-dns.alpha.kubernetes.io/target annotation is present on a
pod, it's value will be used as the target for the headless service.

If annotation external-dns.alpha.kubernetes.io/access=public is present,
NodeExternalIP of the node running the pod is used as the target for the
headless service.
2022-05-05 19:44:32 +02:00
hzhihui
090270e89f
Merge branch 'master' into add_ibmcloud_provider 2022-04-28 09:11:15 +08:00
Kubernetes Prow Robot
042654c4cf
Merge pull request #2538 from mcwarman/istio-gateway-logging
istio-gateway: Add debug logging when endpoints missing
2022-04-27 01:00:11 -07:00