diff --git a/pkg/apis/externaldns/types_test.go b/pkg/apis/externaldns/types_test.go index ab77cc9ec8..a372f6a387 100644 --- a/pkg/apis/externaldns/types_test.go +++ b/pkg/apis/externaldns/types_test.go @@ -75,7 +75,7 @@ var ( AzureSubscriptionID: "", CloudflareProxied: false, CloudflareDNSRecordsPerPage: 100, - CloudflareRegionKey: "", + CloudflareRegionKey: "", CoreDNSPrefix: "/skydns/", AkamaiServiceConsumerDomain: "", AkamaiClientToken: "", @@ -97,6 +97,7 @@ var ( TXTOwnerID: "default", TXTPrefix: "", TXTCacheInterval: 0, + TXTNewFormatOnly: false, Interval: time.Minute, MinEventSyncInterval: 5 * time.Second, Once: false, @@ -176,7 +177,7 @@ var ( AzureSubscriptionID: "arg", CloudflareProxied: true, CloudflareDNSRecordsPerPage: 5000, - CloudflareRegionKey: "us", + CloudflareRegionKey: "us", CoreDNSPrefix: "/coredns/", AkamaiServiceConsumerDomain: "oooo-xxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxx.luna.akamaiapis.net", AkamaiClientToken: "o184671d5307a388180fbf7f11dbdf46", @@ -202,6 +203,7 @@ var ( TXTOwnerID: "owner-1", TXTPrefix: "associated-txt-record", TXTCacheInterval: 12 * time.Hour, + TXTNewFormatOnly: true, Interval: 10 * time.Minute, MinEventSyncInterval: 50 * time.Second, Once: true, @@ -338,6 +340,7 @@ func TestParseFlags(t *testing.T) { "--txt-owner-id=owner-1", "--txt-prefix=associated-txt-record", "--txt-cache-interval=12h", + "--txt-new-format-only", "--dynamodb-table=custom-table", "--interval=10m", "--min-event-sync-interval=50s", @@ -399,7 +402,7 @@ func TestParseFlags(t *testing.T) { "EXTERNAL_DNS_AZURE_SUBSCRIPTION_ID": "arg", "EXTERNAL_DNS_CLOUDFLARE_PROXIED": "1", "EXTERNAL_DNS_CLOUDFLARE_DNS_RECORDS_PER_PAGE": "5000", - "EXTERNAL_DNS_CLOUDFLARE_REGION_KEY": "us", + "EXTERNAL_DNS_CLOUDFLARE_REGION_KEY": "us", "EXTERNAL_DNS_COREDNS_PREFIX": "/coredns/", "EXTERNAL_DNS_AKAMAI_SERVICECONSUMERDOMAIN": "oooo-xxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxx.luna.akamaiapis.net", "EXTERNAL_DNS_AKAMAI_CLIENT_TOKEN": "o184671d5307a388180fbf7f11dbdf46", @@ -451,6 +454,7 @@ func TestParseFlags(t *testing.T) { "EXTERNAL_DNS_TXT_OWNER_ID": "owner-1", "EXTERNAL_DNS_TXT_PREFIX": "associated-txt-record", "EXTERNAL_DNS_TXT_CACHE_INTERVAL": "12h", + "EXTERNAL_DNS_TXT_NEW_FORMAT_ONLY": "1", "EXTERNAL_DNS_INTERVAL": "10m", "EXTERNAL_DNS_MIN_EVENT_SYNC_INTERVAL": "50s", "EXTERNAL_DNS_ONCE": "1",