From 6d2a039a3fcb9355358e558108b629355e6b0a9a Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Sat, 27 Aug 2022 14:51:58 -0700 Subject: [PATCH 1/2] Changelog release dates should be aug, not sept --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f10962..3f36874 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ -## v0.9.18 - 2022-09-14 - Subzone handling +## v0.9.18 - 2022-08-14 - Subzone handling * Fixed issue with sub-zone handling introduced in 0.9.18 -## v0.9.18 - 2022-09-09 - Internationalization +## v0.9.18 - 2022-08-09 - Internationalization * Added octodns.idna idna_encode/idna_decode helpers, providers will need to individually add support via these helpers though :-/ From a3e90ca4ac75f93b049c6db9c4982f59bf83fc1d Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Sat, 27 Aug 2022 16:29:00 -0700 Subject: [PATCH 2/2] Add doc for processor.filter.* --- octodns/processor/filter.py | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/octodns/processor/filter.py b/octodns/processor/filter.py index b343332..f3aabf5 100644 --- a/octodns/processor/filter.py +++ b/octodns/processor/filter.py @@ -13,6 +13,27 @@ from .base import BaseProcessor class TypeAllowlistFilter(BaseProcessor): + '''Only manage records of the specified type(s). + + Example usage: + + processors: + only-a-and-aaaa: + class: octodns.processor.filter.TypeRejectlistFilter + rejectlist: + - A + - AAAA + + zones: + exxampled.com.: + sources: + - config + processors: + - only-a-and-aaaa + targets: + - ns1 + ''' + def __init__(self, name, allowlist): super(TypeAllowlistFilter, self).__init__(name) self.allowlist = set(allowlist) @@ -29,6 +50,26 @@ class TypeAllowlistFilter(BaseProcessor): class TypeRejectlistFilter(BaseProcessor): + '''Ignore records of the specified type(s). + + Example usage: + + processors: + ignore-cnames: + class: octodns.processor.filter.TypeRejectlistFilter + rejectlist: + - CNAME + + zones: + exxampled.com.: + sources: + - config + processors: + - ignore-cnames + targets: + - route53 + ''' + def __init__(self, name, rejectlist): super(TypeRejectlistFilter, self).__init__(name) self.rejectlist = set(rejectlist)