Commit Graph

18 Commits

Author SHA1 Message Date
Andy Bursavich
f6392be41e
gofumpt 2022-09-22 10:44:50 +01:00
renehernandez
b21d11be92 Support proxying wildcard records 2022-06-02 12:04:27 -04: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