Commit Graph

32 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
Tongyao Si
feed7d7838 fix(azure): not use SPN to authenticate when clientid or secret is 'msi'
Add unit test

Fix unit test error

Fix unit test error

Fix unit test error

Fix unit test error

Fix unit test error

Fix unit test error

Fix unit test error
2020-02-17 21:46:21 +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
Tongyao Si
14c391ba1f fix: typo 2019-11-28 19:16:03 +08:00
Tongyao Si
0c4878f115 feat(Azure): support specifying user assigned identity's clientID to authenticate 2019-11-28 19:08:45 +08:00
njuettner
1f1809f5a1 Fix linter flaws 2019-11-26 15:14:49 +01:00
Zhang Jinghui
b318f666ba normalize function return and comments on exported type 2019-11-14 23:55:18 +08:00
saidst
fc3ca1e1ea Attempt to optimize changes to azure_tests.go (#2) 2019-11-03 07:49:58 +01:00
Tim Jacomb
08bd87552b Remove debug 2019-11-03 07:49:58 +01:00
stsaid
5a1715b582 fixed issue in iteration of recordset/zone-results from azure. 2019-11-03 07:49:55 +01:00
Tim Jacomb
4f08319438 Fix Azure tests 2019-11-03 07:49:53 +01:00
Tim Jacomb
186906e1e3 Fix iteration and mock, no infinite loop 2019-11-03 07:49:52 +01:00
stsaid
5d556868f1 Reworked azuresdk usage (#1) 2019-11-03 07:49:49 +01:00
Tim Jacomb
bb9edf7993 Use mocks properly 2019-11-03 07:49:46 +01:00
Tim Jacomb
a00676c032 Update function signatures to match SDK 2019-11-03 07:49:46 +01:00
Tim Jacomb
b74b5ee5c4 Update value 2019-11-03 07:49:46 +01:00
Tim Jacomb
8aa61d3ce3 Update to new function names 2019-11-03 07:49:46 +01:00
Tim Jacomb
d333ecd508 Some test compilation fixes 2019-11-03 07:49:46 +01:00
Tim Jacomb
7be10ecbff WIP 2019-11-03 07:48:43 +01: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
Michael FIG
90407b3927 Azure: Support multiple A targets. 2019-04-17 10:47:43 -06: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
Roman Sokolkov
9f668a5de7
Move token code to separate function and add test 2018-06-01 10:13:28 +02:00
Gary Kramlich
1cef71e0be Inititial support for multiple targets per record 2018-03-13 23:16:51 -05:00
Filip Ström
f32f0777e8 Added TTL check when retrieving endpoints. Updated tests to include TTL checks. 2018-01-10 15:49:36 +01:00
Valentyn Boginskey
4dacf81238 New filter: --zone-id-filter (#422)
* Add aws-zone-id flag

* Add Zone ID filter

* Update AWS provider and main

* Make ZoneIDFilter generic

* Implement ZoneIDFilter for all providers

* Update CHANGELOG
2017-12-20 17:00:13 +01:00
Seth Pollack
f14a953b5f Kops Compatibility #1: Set RecordType at source (#248)
* set RecordType at source

* add comments for linting
2017-08-25 14:41:40 +02:00
Nils Juenemann
73d397961e Support for multiple domains within --domain-filter (#252)
* Support for multiple domains within --domain-filter

The parameter accepts a comma separated list of domains with or without trailing dot. Example: --domain-filter="example.org, company.test.,staging.com". Closes #247 and #229

* Add boilerplate header

* Add documentation for methods and structs

* use StringsVar for the domain-filter flag

* go fmt

* Remove camel case from tests

* Revert changes in README.md

* Move DomainFilter to provider package

* Make a new slice and copy elements to it

* Update CHANGELOG.md

* docs: change minor spelling mistake
2017-06-29 18:59:05 +02:00
Peter Huene
3355528c16 Implement Azure DNS provider (#210) (#214)
* vendor Azure Go SDK (#210)

* vendor the Azure Go SDK and dependencies

* add initial Azure DNS provider implementation (#210)

* add 'azure' value to 'provider' command line option
* add 'azure-config-file' command line option
* add 'azure-resource-group' command line option
* implement initial Azure DNS provider

note: azure provider is not yet fully implemented (does not query for existing
records).

tests and documentation are forthcoming.

* add a tutorial for the Azure provider (#210)

* add tutorial for using ExternalDNS with Azure DNS

* finish implementation of Azure DNS provider (#210)

* implement the Records method for the Azure DNS provider

* refactor Azure API interface for future tests (#210)

* make Azure provider use an interface for future unit tests

* add unit tests for the Azure provider (#210)

* test retrieving Azure DNS records.
* test updating and deleting Azure DNS records.
* test dry run for the Azure provider (i.e. noop).
2017-06-02 15:24:52 +02:00