Commit Graph

21 Commits

Author SHA1 Message Date
Ivan Ka
a6243cf6bb
chore(providers): rename custom TTL constants to defaultTTL (#5312)
* chore(provider): inline providers

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

* chore(provider): inline providers

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

* chore(provider): inline providers

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

* chore(provider): inline providers

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

* chore(provider): inline providers

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

---------

Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
2025-04-27 14:59:25 -07:00
ivan katliarchuk
757a57609f
chore(code-quality): linter warnings fixes
Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
2025-04-23 22:03:00 +01:00
André Águas
a6aa77ddcd
Update provider/google/google_test.go
Co-authored-by: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com>
2024-11-14 17:16:42 +01:00
Andre Aguas
43b6963198 add unit tests
Signed-off-by: Andre Aguas <andre.aguas@protonmail.com>
2024-11-14 17:04:12 +01:00
Andre Aguas
1fc97ec54a Add trailing dot to NS records in Google Cloud DNS
NS records added in Google Cloud DNS must have a trailing dot. Otherwise the API throws the following error:
```
time="2024-11-04T10:34:20Z" level=error msg="googleapi: Error 400: Invalid value for 'entity.change.additions[cloud.k8gb.io.][NS].rrdata[0]': 'gslb-ns-eu-cloud.k8gb.io', invalid"
```
This is similar to CNAME, MX and SRV records.

---

This change was tested with the a DNSEndpoint CRD containing the following endpoints:
```
    endpoints:
    - dnsName: cloud.k8gb.io
      recordTTL: 5
      recordType: NS
      targets:
      - gslb-ns-eu-cloud.k8gb.io
      - gslb-ns-us-cloud.k8gb.io
    - dnsName: gslb-ns-eu-cloud.k8gb.io
```
And the record was successfully created
```
gcloud dns record-sets list --zone="k8gb" --type=NS --name "cloud.k8gb.io."
NAME            TYPE  TTL  DATA
cloud.k8gb.io.  NS    5    gslb-ns-eu-cloud.k8gb.io.,gslb-ns-us-cloud.k8gb.io.
```

Signed-off-by: Andre Aguas <andre.aguas@protonmail.com>
2024-11-05 00:03:42 +01:00
EWK20
920e6820be adds soft error test cases 2024-09-10 13:59:16 +01:00
EWK20
3f73f86da0 adds soft error for google provider 2024-08-15 13:29:52 +01:00
Raffaele Di Fazio
b5e6817ba4 project id with context
Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>
2024-08-05 21:53:37 +02:00
Alfred Krohmer
366c070d89 cleanup: remove dead code ((Create|Update|Delete)Records functions in AWS, Google, DNSimple)
These functions where exported but unused; only `CreateRecords` was used in some tests, but its use can be replaced with `ApplyChanges`.
2023-12-20 16:55:49 +01:00
Dieter Bocklandt
6a3e97083c
fix(google): ensure trailing dot for SRV records 2023-11-14 17:12:56 +01:00
Andrew Chinnadorai
a7884f191a Add tests for filtering peering zones 2023-06-19 18:29:24 +02:00
itspngu
b1084bef4f
fix: filter peering zones in google provider 2023-06-19 17:28:16 +01:00
Seweryn Chlewicki
205e8c0334
Add support for MX records in Azure, GCP and AWS 2023-03-30 20:32:32 +01:00
Kubernetes Prow Robot
5b73225407
Merge pull request #2850 from orirawlings/exclusionOnlyDomainFilterFix
Restore support for exclusion-only domain filters for AWS provider
2022-11-05 03:12:14 -07:00
Andy Bursavich
74ffff6c26 gofumpt 2022-09-20 20:48:57 -07:00
Ori Rawlings
4ad56998f1 Restore support for exclusion-only domain filters for AWS provider 2022-06-29 12:24:38 -05:00
Andrey Lebedev
d5eb1bf161 GCP: handle failed project auto detection 2021-10-18 21:34:08 +02:00
Falcon Taylor-Carter
436b9c3cf1 Add support for GoogleZoneVisibility 2021-07-01 19:21:39 -04:00
Adam Stankiewicz
f008e894df Allow for custom property comparators
Fixes issue #1463

Co-authored-by: Alastair Houghton <alastair@alastairs-place.net>
2020-05-12 16:27:46 +02:00
Raffaele Di Fazio
82539e35a3 makes tests pass
Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>
2020-05-08 13:54:13 +02:00
Raffaele Di Fazio
db4224c705 restructures the providers (build only)
Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>
2020-05-08 13:05:17 +02:00