We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 17a4686 + 0b97ed3 commit d188d56Copy full SHA for d188d56
1 file changed
pkg/backend/purger.go
@@ -71,6 +71,14 @@ func (b *backend) purge() {
71
return
72
}
73
74
+ // Elide records for "local" FQDNs, these won't exist in the database but shouldn't be deleted.
75
+ localSuffix := ".local." + b.baseDomain
76
+ for pair := range recordsToDelete {
77
+ if strings.HasSuffix(pair.FQDN, localSuffix) {
78
+ delete(recordsToDelete, pair)
79
+ }
80
81
+
82
if len(recordsToDelete) == 0 {
83
logrus.Infof("Records purged from Route53: 0")
84
0 commit comments