1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00
Commit Graph

859 Commits

Author SHA1 Message Date
Ricard Bejarano
0a212828bc Merge branch 'master' into hetzner-provider 2021-04-27 20:12:10 +02:00
Ricard Bejarano
d4c6836d0b implemented HetznerProvider.zone_metadata as the equivalent to zone_records for zone metadata 2021-04-27 19:58:07 +02:00
Ricard Bejarano
a0c4e9ecd7 simplified HetznerClient by removing unused pagination handling 2021-04-27 19:56:39 +02:00
Ricard Bejarano
0de9efd032 removed unused HetznerClient methods to fix imparial coverage 2021-04-27 07:31:05 +02:00
Ricard Bejarano
a4ac90babe Merge branch 'master' into fix-plan-debug-log 2021-04-26 19:09:09 +02:00
Ricard Bejarano
3f3d500152 fixed missing whitespace in plan() debug logging
When debug logging is enabled, the plan() function logs lines like:

    <previous output>
    Plan: DEBUG: __init__: Creates=13, Updates=0, Deletes=0Existing=0
    <following output>

  Where a space between "Deletes=0" and "Existing=0" is missing.
  This adds it.
2021-04-26 19:06:29 +02:00
Ricard Bejarano
fe74c46213 made hetzner.HetznerProvider._do Mock-able for testing purposes making it a wrapper for _do_raw 2021-04-26 19:02:44 +02:00
Ross McFarland
e90aeb5d34 pools used as fallbacks should count as seen 2021-04-22 18:45:14 -07:00
Cadu Ribeiro
3451c79c6a Change DNSimple's Provider to query zones instead domains
A quick summary of a problem with have with DNSimple provider:
Let's suppose that I have the following config:

zones:
  30.114.195.in-addr.arpa.:
    sources:
      - config
    targets:
      - dnsimple

Even if a customer has this Reverse zone configured in DNSimple, this
fails with:

400 Bad Request for url: https://api.sandbox.dnsimple.com/v2/x/domains

because it is trying to create a domain because the zone wasn't found.
octodns.provider.dnsimple.DnsimpleClientNotFound: Not found

This happens because the GET /domains endpoint at DNSimple does not
bring Reverse Zones. To make this work nice, we should use /zones/
instead making it return properly the reverse zones.
2021-04-21 12:41:11 -03:00
Ricard Bejarano
1a2cb50c63 fixed potential KeyError when record ttl field is missing 2021-04-21 07:52:38 +02:00
Ricard Bejarano
73120bc9b5 Merge branch 'master' into hetzner-provider 2021-04-14 07:59:35 +02:00
Ricard Bejarano
f507349ce5 implemented HetznerProvider 2021-04-14 07:57:23 +02:00
Ricard Bejarano
8a9743b36e added HetznerClient._replace_at to address the "@"/"" record name problem 2021-04-13 08:08:48 +02:00
Ricard Bejarano
c8e91c1e11 added HetznerClient docstring 2021-04-12 21:08:53 +02:00
Ricard Bejarano
c71784b0e8 initial work on Hetzner provider
- implemented HetznerClient API class
- tested manually, lacking formal tests
2021-04-12 08:06:59 +02:00
Christian Funkhouser
ada61f8d76 De-lint an aggressively-long log line 2021-04-08 11:56:17 -04:00
Christian Funkhouser
aa93e20f2e Represent plan_output_fh less verbosely.
Co-authored-by: Ross McFarland <ross@github.com>
2021-04-08 11:03:30 -04:00
Christian Funkhouser
2075550f07 Test that Manager passes fh to _PlanOutputs 2021-04-07 18:21:34 -04:00
Christian Funkhouser
090dbe3515 sync accepts file handle for plan output 2021-04-07 16:00:05 -04:00
Scott Little
9fa394ff0f Merge branch 'master' into smallcubed-easydns-patch 2021-03-31 18:32:06 +02:00
Maikel Poot
840cb03bf4 Fix lint error 2021-03-31 13:44:37 +02:00
Maikel Poot
374a5c62f2 Enable NS support for non-root NS records 2021-03-31 12:49:01 +02:00
Scott Little
a99c71b3e5 Change the auth value to have a proper string not a binary rep 2021-03-26 19:48:38 +01:00
Ross McFarland
5e1f653848 Merge remote-tracking branch 'origin/master' into srv_null_records 2021-02-18 07:52:47 -08:00
Ross McFarland
55af09d73c use super for supports base case, remove unused data_for. 2021-02-18 07:11:18 -08:00
Mark Tearle
ccd7994347 Merge branch 'master' into loc_record_support 2021-02-15 22:52:49 +08:00
Mark Tearle
84a0c089d4 Warn that NULL SRV records are unsupported in DNS Made Easy provider 2021-02-15 22:33:12 +08:00
Mark Tearle
2cd5511dc6 Warn that NULL SRV records are unsupported in DNSimple provider
DNSimple does not handle NULL SRV records correctly (either via
their web interface or API).  Flag to end user if attempted.

Issue noted with DNSimple support 2020-12-09
2021-02-15 22:33:04 +08:00
Mark Tearle
39412924da Fix handling of NULL SRV records in DigitalOcean provider 2021-02-15 22:24:26 +08:00
Mark Tearle
403be8bb83 Fix handling of NULL SRV records in Cloudflare provider 2021-02-15 22:23:45 +08:00
Ross McFarland
6034e8022f Swap import order 2021-02-11 17:05:42 -08:00
Steven Honson
fdf74f9dd3 powerdns: sort in place 2021-02-12 00:48:42 +11:00
Steven Honson
39d86f023e powerdns: deletes before replaces 2021-02-12 00:29:48 +11:00
Ross McFarland
61b117693b Merge branch 'master' into making-changes-info 2021-02-09 07:50:53 -08:00
Mark Tearle
f5c2f3a141 Add LOC record support to PowerDNS provider 2021-02-09 20:41:46 +08:00
Mark Tearle
5852ae7a2f Detect changes to LOC record correctly 2021-02-09 20:41:44 +08:00
Mark Tearle
5963c8b894 Force order of Delete() -> Create() -> Update() in Cloudflare provider
Addresses issues with changing between A, AAAA and CNAME records in
both directions with the Cloudflare API

See also: github/octodns#507
See also: github/octodns#586
See also: github/octodns#587
2021-02-09 20:41:42 +08:00
Mark Tearle
8338e8db58 Add LOC record support to Cloudflare provider 2021-02-09 20:41:41 +08:00
Mark Tearle
3ac8d0fa1c Add LOC record support to AXFR source 2021-02-09 20:41:39 +08:00
Mark Tearle
9d4bd0aaec Add support for LOC records 2021-02-09 20:41:37 +08:00
Ross McFarland
f9cbf81817 Merge branch 'master' into fix-windows-filename-problems 2021-02-05 12:04:31 -08:00
Ross McFarland
4081c7b31b Add the number of changes and zone name to "making changes" 2021-02-05 11:55:37 -08:00
Ross McFarland
cda56a3ca7 Force the value passed to FQDN to be a str 2021-02-04 10:48:45 -08:00
Robert Reichel
9056c781c2 Merge branch 'master' into rreichel3/lazy-load-azuredns-client 2021-02-02 13:23:30 -05:00
Robert Reichel
a58371e3bb Apply suggestions from code review
Co-authored-by: Ross McFarland <ross@github.com>
2021-02-02 12:40:57 -05:00
Robert Reichel
831d1cc30b Add missing colon 2021-02-02 12:34:44 -05:00
Robert Reichel
5e78d07a97 Use @property in lieu of property() 2021-02-02 12:31:04 -05:00
Robert Reichel
975376d09d Remove trailing whitespace 2021-02-02 12:26:04 -05:00
Robert Reichel
6fb77c0810 Add set DNS client logic if needed for testing 2021-02-02 12:21:48 -05:00
Robert Reichel
6146be8ec3 Remove unused set_dns_client property 2021-02-02 12:21:00 -05:00