Commit Graph

22 Commits

Author SHA1 Message Date
Markus Cisler
14d64e09f2 Change DomainFilter to apply to records as well
This moves `domain_filter.go` to the `endpoint` package to make it
possible to filter and exclude record names in
`plan.filterRecordsForPlan()` so it does not have to be implemented in
every single provider.

Because some providers access `DomainFilter.filters` directly it had to
be exported.
2020-02-24 11:19:45 +01:00
Tariq Ibrahim
a5896c2326
remove context.TODO()s in external-dns 2020-01-15 13:59:20 -08:00
tariqibrahim
672b00d821 add ctx parameter to provider interface and aws API 2020-01-12 13:16:55 -08:00
Tariq Ibrahim
bf4b1767fa
add more linters and improve code quality 2020-01-07 15:18:00 -08:00
Tariq Ibrahim
41ba7f1ff5
rename project root package to sigs.k8s.io 2020-01-06 08:08:35 -08:00
Nick Jüttner
f763d2a413 Move into kubernetes-sigs organization (#1245)
* Move into kubernetes-sigs organization

* Disable labeler action for forks
2019-11-01 17:10:19 +01:00
Michael Fraenkel
fab942f486 Cache the endpoints on the controller loop
The controller will retrieve all the endpoints at the beginning of its
loop. When changes need to be applied, the provider may need to query
the endpoints again. Allow the provider to skip the queries if its data was
cached.
2019-05-07 19:51:53 -04:00
Anand Singh Kunwar
adfe88a526 Fixed PowerDNS Domain Filter Bug
* When using Domain Filters with PowerDNS provider and providing
  no domain filter, the provider ignores all zones instead of
  including all zones which is the default behaviour
* Added test cases for PartitionZones function of PDNSClient
2019-02-17 18:14:15 +05:30
Nick Jüttner
c63bf03097
Merge pull request #737 from ottoyiu/pdns-domainfilter
PowerDNS: Add DomainFilter support
2018-11-14 13:50:19 +01:00
Bily Zhang
c0968ab857 Fix typos: sychronized->synchronized, resouce->resource, sepecified->specified (#769)
Signed-off-by: mooncake <xcoder@tenxcloud.com>
2018-11-12 08:33:53 +01:00
Otto Yiu
04ca5ec22f pdns: Add DomainFilter support 2018-10-22 13:54:11 -07:00
Bartel Sielski
476e0456ac Fix Host field in HTTP request when using pdns provider
The Host field of the HTTP request is set incorrectly when passing
the configured server.  The underlying HTTP library experts a hostname
to be passed.  When passing it a string of the form 'http://pdns.example.com'
this gets converted into 'http:' (stripping everything from the first
slash onward).  However setting the Host field in the pdnsClientConfig
object is not needed because the underlying library will then parse the
hostname from the URL.

Fixes #661

Signed-off-by: Bartel Sielski <bartel.sielski@gmail.com>
2018-09-06 15:52:44 +02:00
Jason Hoch
c40e563292 Simplify flag checks; format 2018-06-21 11:56:36 -04:00
Jason Hoch
8223796ae7 Utilizes tlsutils in pdns 2018-06-20 16:44:13 -04:00
Jason Hoch
9a7fafa0c5 Addresses golint warnings #2 2018-06-19 16:05:35 -04:00
Jason Hoch
d56ef6dbda gofmt 2018-06-19 15:56:55 -04:00
Jason Hoch
0ecf2e68ae Addresses golint warnings 2018-06-19 15:54:20 -04:00
Jason Hoch
15b279a4bc Adds TLS flags for pdns provider 2018-06-19 15:40:32 -04:00
Roderick Schaefer
3e4f4a3f54 Fixes CNAME support in the PowerDNS provider (#547) 2018-05-09 17:50:14 +02:00
Anand Singh Kunwar
e84630f011 Fixed Bug in PowerDNS provider and added testcases
* Fixed PowerDNS provider bug affecting endpoint conversion to
  zone in a particular case
* Added a regressive test case, covered an additional case

PowerDNS provider bug: In the function ConvertEndpointsToZones,
the endpoints are sorted lexicographically increasing
(and by record type in case of match). The zones are sorted by
decreasing order of length. There's a loop through of zones
under which the code loops through endpoints. In the case
the first endpoint does not match with the first zone,
the complete zone won't get populated with any endpoints.
2018-04-20 17:15:48 +05:30
Nick Jüttner
32ce01e7fb Fix multi targets PowerDNS (#532) 2018-04-18 21:36:43 +02:00
Anhad Jai Singh
ec822d7bbd Add PowerDNS as a provider
Commit adds:
* Implementation of PowerDNS as a provider
* Tests for said implementation
* github.com/ffledgling/pdns-go, which provides go client bindings for
  PowerDNS's HTTP API, as a dependency
* "pdns" as an additional option for the `--provider` flag
* `--pdns-server` and `--pdns-api-key` as additional flags for PowerDNS
  specific configuration
2018-04-16 19:11:35 +05:30