Skip to content

Commit fa9e37e

Browse files
feat(txt-registry): deprecate legacy txt-format
Signed-off-by: ivan katliarchuk <[email protected]>
1 parent 4faec98 commit fa9e37e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/registry/txt.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ And when configured `--txt-suffix="-abc.%{record_type}"` for apex domain `exampl
3838
3939
Occasionally, it may be necessary to remove outdated TXT records from your registry.
4040

41-
The script could be found in [scripts/cleanup-legacy-txt-records.py](../../scripts/cleanup-legacy-txt-records.py) with instructions how to run it.
41+
An example script for AWS can be found in [scripts/cleanup-legacy-txt-records.py](../../scripts/cleanup-legacy-txt-records.py) with instructions on how to run it.
4242
The script performs targeted deletion of TXT records that include `ResourceRecords` matching the `heritage=external-dns,external-dns/owner=default` or similar pattern.
4343
In the event of unintended deletion of all TXT records managed by `external-dns`, `external-dns` will initiate a full DNS record regeneration, along with`TXT` and `non-TXT` records. Just be aware, this operation's duration is directly proportional to the DNS estate size."
4444

pkg/apis/externaldns/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ func App(cfg *Config) *kingpin.Application {
615615
app.Flag("txt-wildcard-replacement", "When using the TXT registry, a custom string that's used instead of an asterisk for TXT records corresponding to wildcard DNS records (optional)").Default(defaultConfig.TXTWildcardReplacement).StringVar(&cfg.TXTWildcardReplacement)
616616
app.Flag("txt-encrypt-enabled", "When using the TXT registry, set if TXT records should be encrypted before stored (default: disabled)").BoolVar(&cfg.TXTEncryptEnabled)
617617
app.Flag("txt-encrypt-aes-key", "When using the TXT registry, set TXT record decryption and encryption 32 byte aes key (required when --txt-encrypt=true)").Default(defaultConfig.TXTEncryptAESKey).StringVar(&cfg.TXTEncryptAESKey)
618-
app.Flag("txt-new-format-only", "A key is reserved for TXT migraion. Enabling or disabling it will not take any effect. (deprecated)").BoolVar(&cfg.TXTNewFormatOnly)
618+
app.Flag("txt-new-format-only", "Was used during TXT format migration. Enabling or disabling it will not take any effect. (deprecated)").BoolVar(&cfg.TXTNewFormatOnly)
619619
app.Flag("dynamodb-region", "When using the DynamoDB registry, the AWS region of the DynamoDB table (optional)").Default(cfg.AWSDynamoDBRegion).StringVar(&cfg.AWSDynamoDBRegion)
620620
app.Flag("dynamodb-table", "When using the DynamoDB registry, the name of the DynamoDB table (default: \"external-dns\")").Default(defaultConfig.AWSDynamoDBTable).StringVar(&cfg.AWSDynamoDBTable)
621621

scripts/cleanup-legacy-txt-records.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838
# - The script is executed with command-line arguments specifying the hosted zone ID, record pattern, total items to delete, batch size, and whether to perform a dry run or actual deletion.
3939
# - Check 'To Run script' section for more details
4040

41+
# WARNING: run this script at your own RISK. This will delete all the TXT rerods that do contain certain string.
4142
# To Run script
4243
# 1. Python, pip and pipenv installed https://pipenv.pypa.io/en/latest/
4344
# 2. AWS Access https://docs.aws.amazon.com/signin/latest/userguide/command-line-sign-in.html
4445
# 3. pipenv shell
4546
# 4. pip install boto3
4647
# 5. python scripts/cleanup-legacy-txt-records.py --help
47-
# WARNING: run this script at your own RISK. This will delete all the TXT rerods that do contain certain string.
4848
# 6. DRY RUN python scripts/cleanup-legacy-txt-records.py --zone-id ASDFQEQREWRQADF --record-match text
4949
# 6.1 Before execution consider to stop `external-dns`
5050
# 7. Execute Deletion. First few times with reduced number of items

0 commit comments

Comments
 (0)