Commit Graph

41 Commits

Author SHA1 Message Date
Andrew Hay
3b5ef9733b
Merge branch 'master' into cloudflare/region 2024-11-01 10:39:22 -04:00
Andrew Hay
806cf81f45 fix: update function name to resemble crud 2024-10-29 14:52:46 +00:00
Andrew Hay
1e35134563 fix: add remove default from minimal config 2024-10-11 15:31:33 +00:00
Andrew Hay
438b0bccb5 fix: add UpdateDataLocalizationRegionalHostname to test framework 2024-10-11 15:02:33 +00:00
Andrew Hay
3b4568e620 fix: update failing tests 2024-10-07 19:36:54 +00:00
Michel Loiseleur
51300362cc
chore(deps): fix update on cloudflare and alibaba 2024-09-17 09:18:27 +02:00
Andrew Hay
e49c40dbd3 chore: remove extra comments 2024-09-13 18:41:29 +00:00
Andrew Hay
797629fec6 chore: remove extra comments 2024-09-13 18:39:59 +00:00
Andrew Hay
c18bb8baa6 test: add tests for cloudflare region 2024-09-09 01:45:12 +00:00
Andrew Hay
70406fcaec fix: resolve syntax errors 2024-09-06 20:45:22 +00:00
Andrew Hay
bbe914b655 add flag declaration 2024-08-05 19:21:48 +00:00
Eddie Bachle
c9e5f594cb add test for Records with rate limit 2024-05-07 12:04:10 -04:00
Eddie Bachle
ffa8f4a2c9 fmt 2024-05-07 11:56:26 -04:00
Eddie Bachle
4ee03cddbf fix: soft error on cloudflare rate limits 2024-05-06 16:28:03 -04:00
Daniel Sullivan
cefb47c467
Improve Cloudflare provider metrics 2023-11-30 16:23:54 +01:00
John Gardiner Myers
c596611f9e Allow AdjustEndpoints to return error 2023-09-03 11:23:03 -07:00
John Gardiner Myers
e9be5887bd Remove DomainFilterInterface 2023-08-11 13:01:22 -07:00
John Gardiner Myers
5affab0561 Remove PropertyValuesEqual method from Provider interface 2023-08-04 04:56:43 -07:00
John Gardiner Myers
4a1f5c686c Normalize Cloudflare provider-specific properties in AdjustEndpoints 2023-08-04 04:06:55 -07:00
Michel Loiseleur
e06ed8cc5d build(deps): bump dev-dependencies group with 40 updates 2023-06-16 17:15:35 +02:00
Charles Xu
4447b2a810 cloudflare: support reading API token from file 2023-04-18 15:44:27 -07:00
Artur Rodrigues
789190d565
Parametize cloudflare dns records per page
Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>
2023-02-17 13:21:11 +00:00
Artur Rodrigues
2cc75a04b7
Pass PerPage param to calls to ListDNSRecords
Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>
2023-02-17 13:21:11 +00:00
Artur Rodrigues
81068bc1ce
Remove unused cloudflare pagination options
Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>
2023-02-17 13:21:10 +00:00
Artur Rodrigues
90eb289984
Adapt to breaking changes on cloudflare-go 0.58.0
Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>
2023-01-09 10:16:57 +00:00
Calvin Huang
f57182506b reorder cloudflare updates to delete before create 2022-10-18 14:30:50 -07:00
Andy Bursavich
74ffff6c26 gofumpt 2022-09-20 20:48:57 -07:00
renehernandez
b21d11be92 Support proxying wildcard records 2022-06-02 12:04:27 -04:00
Devon Mizelle
d1d14d34ac PR Comment Fixes
* Bump cloudflare-go to 0.25.0
* Use a function for pointer booleans rather than hardcoding it.
2021-10-18 15:47:18 -04:00
Devon Mizelle
6d2919de76 Bump Cloudflare-Go
In order for us to use some new features provided by cloudflare-go for
the cloudflare provider (mainly around Cloudflare Access, etc.) we need
to bump the version of cloudflare-go used.

The only real change that needed to be done was that the `Proxied` field
on `cloudflare.DNSRecord` structs changed from `bool` -> `*bool`.
Upstream did this because in certain cases, a user could not flip from
proxied -> DNS only (the library omitted sending `proxied = false` to
the API)

Other decent change was that most methods exported by the library now
require `context.Context` to be passed in. Was rather trivial to get up.

https://github.com/cloudflare/cloudflare-go/pull/595

Signed-off-by: Devon Mizelle <devon.mizelle@onepeloton.com>
2021-09-30 21:30:16 -04:00
Raffaele Di Fazio
daeee26684
Add flag to opt in for NS records management (#1915)
* adds flag to opt in for NS records management

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

* go fmt

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

* goimports

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

* fix more tests

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

* go fmt again

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

* fix test

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

* more tests

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

* make ordering of managed records consistent

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

* fix flag

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>
2021-01-12 06:32:26 -08:00
Raffaele Di Fazio
f5aa1c4c37
Add new method to provider interface to implement provider specific changes (#1868)
* adds tests for shouldUpdateProviderSpecific

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

* move AWS health to where it belongs

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

* add test that breaks things

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

* adds adjustendpoints method

Signed-off-by: Raffaele Di Fazio <raffo@github.com>

* fix controller

Signed-off-by: Raffaele Di Fazio <raffo@github.com>

* actually pass the provider where needed

Signed-off-by: Raffaele Di Fazio <raffo@github.com>

* OMG goland do your go fmt thing

Signed-off-by: Raffaele Di Fazio <raffo@github.com>

* use registry as proxy

Signed-off-by: Raffaele Di Fazio <raffo@github.com>

* make linter happy

Signed-off-by: Raffaele Di Fazio <raffo@github.com>

* change AdjustEndpoints signature

Signed-off-by: Raffaele Di Fazio <raffo@github.com>

* fix typo

Signed-off-by: Raffaele Di Fazio <raffo@github.com>

* actually use adjusted endpoints

Signed-off-by: Raffaele Di Fazio <raffo@github.com>

* revert cloudflare change

Signed-off-by: Raffaele Di Fazio <raffo@github.com>

* Update provider/cloudflare/cloudflare.go

Co-authored-by: Nick Jüttner <nick@juni.io>

Co-authored-by: Nick Jüttner <nick@juni.io>
2020-12-09 23:40:54 -08:00
Yury Tsarev
ede9767c78 Fix NS related provider test 2020-10-12 22:45:17 +02:00
Kubernetes Prow Robot
25d71ea45a
Merge pull request #1536 from sheerun/property-comparator
Allow for custom property comparators
2020-06-01 03:07:55 -07:00
Devon Mizelle
60d4ef229e
Allow ZoneIDFilter for Cloudflare
This commit _should_ help #1127. While users in the past were able to
define ZoneIDFilter for this provider, it did not actually do anything
under the hood.

In this case, we're changing Zones() to iterate over the provided
zoneIDs and return only those zones.

I would have also done this for domainFilter, but unfortunately the
CloudFlare API requires that in order to list zones (and find them by
name) that you have "all" permissions, which seems silly. After talking
to their support, this is probably the best way to do this.

Signed-off-by: James Callahan <jamescallahan@bitgo.com>
2020-05-21 22:28:55 +10:00
Adam Stankiewicz
639db9f68f Merge branch 'master' into property-comparator 2020-05-16 22:36:23 +02: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
Adam Stankiewicz
76dcc4acc8 Merge branch 'master' into fix-updates 2020-05-11 20:46:50 +02:00
Raffaele Di Fazio
45b1db4478 Merge branch 'master' into raffo/provider-structure-refactor 2020-05-08 13:58:50 +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