Commit Graph

92 Commits

Author SHA1 Message Date
Andrew Hay
70406fcaec fix: resolve syntax errors 2024-09-06 20:45:22 +00:00
Andrew Hay
4386cbbb6d cloudflare: changes to plan 2024-08-06 20:32:39 +00:00
Andrew Hay
6ef25bf276 fix: add RegionalHostname 2024-08-06 16:09:02 +00:00
Andrew Hay
d8ec9354da fix: add flag declaration 2024-08-05 19:23:48 +00:00
Andrew Hay
a38476b791 feat: add cloudflare host name 2024-07-31 18:33:12 +00:00
Simon Ostendorf
ef066d3185
fix(provider/cloudflare): clean token from file 2024-05-29 09:27:44 +02:00
Eddie Bachle
4ee03cddbf fix: soft error on cloudflare rate limits 2024-05-06 16:28:03 -04:00
Daniel Sullivan
a0c5109ddb
Remove unnecessary newlines 2023-12-04 11:39:11 +01: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
4a1f5c686c Normalize Cloudflare provider-specific properties in AdjustEndpoints 2023-08-04 04:06:55 -07:00
Kubernetes Prow Robot
75ec69905a
Merge pull request #3629 from aoz-turk/master
Add no-change info log for cloudflare provider
2023-06-28 03:26:32 -07:00
Michel Loiseleur
e06ed8cc5d build(deps): bump dev-dependencies group with 40 updates 2023-06-16 17:15:35 +02:00
aoz-turk
34ab4055da
Add no-change info log for cloudflare provider 2023-05-24 14:46:22 +03:00
Charles Xu
f4c7466e40 fix lint 2023-04-24 11:17:59 -07: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
Kubernetes Prow Robot
bfcd7648c9
Merge pull request #2662 from mateusz-jablonski94/#2610-handle-zone-lookup
stop processing after zone lookup failed
2023-01-02 11:13:31 -08: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
Mateusz Jabłoński
5372829b82
Merge branch 'kubernetes-sigs:master' into #2610-handle-zone-lookup 2022-07-06 15:59:35 +02:00
renehernandez
b21d11be92 Support proxying wildcard records 2022-06-02 12:04:27 -04:00
Mateusz Jabłoński
43a477f6c0 stop processing after zone lookup failed 2022-03-23 10:03:25 +01:00
Kubernetes Prow Robot
8b07536f4a
Merge pull request #2471 from NicklasWallgren/bugfix/cloudflare-logging
Cloudflare provider - Removed incorrect log message
2021-12-17 05:22:29 -08:00
Kubernetes Prow Robot
58bc1df47f
Merge pull request #2298 from dmizelle/mine/bump-cloudflare-go
Bump Cloudflare-Go
2021-12-17 01:28:29 -08:00
NicklasWallgren
3cca37724d Cloudflare provider - Removed incorrect log message 2021-12-12 12:07:13 +01: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
Ari Becker
6c607b64e4
Fix log message if a cloudflare update fails
If a Cloudflare DNS record update fails, the log erroneously claimed
that it failed to delete the record. This fixes the log to claim that
it failed to update the record.

Signed-off-by: Ari Becker <ari-becker@users.noreply.github.com>
2021-10-12 15:56:35 +03:00
Devon Mizelle
0c4258248b ListZonesContext no longer takes paginationOptions 2021-09-30 21:30:19 -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
bl-ue
84a23191b5 Fix typos
* fix typos

* fix special quote characters

* fix syntax highlighting in some code blocks
2020-12-13 10:03:14 -05: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
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
884379e4b3 Fix tests 2020-05-11 20:49:11 +02:00
Adam Stankiewicz
76dcc4acc8 Merge branch 'master' into fix-updates 2020-05-11 20:46:50 +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