File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -285,17 +285,13 @@ func (im *TXTRegistry) Records(ctx context.Context) ([]*endpoint.Endpoint, error
285285 return endpoints , nil
286286}
287287
288- // generateTXTRecord generates TXT records in either both formats (old and new) or new format only,
289- // depending on the newFormatOnly configuration. The old format is maintained for backwards
290- // compatibility but can be disabled to reduce the number of DNS records.
291288func (im * TXTRegistry ) generateTXTRecord (r * endpoint.Endpoint ) []* endpoint.Endpoint {
292289 return im .generateTXTRecordWithFilter (r , func (ep * endpoint.Endpoint ) bool { return true })
293290}
294291
295292func (im * TXTRegistry ) generateTXTRecordWithFilter (r * endpoint.Endpoint , filter func (* endpoint.Endpoint ) bool ) []* endpoint.Endpoint {
296293 endpoints := make ([]* endpoint.Endpoint , 0 )
297294
298- // Always create new format record
299295 recordType := r .RecordType
300296 // AWS Alias records are encoded as type "cname"
301297 if isAlias , found := r .GetProviderSpecificProperty ("alias" ); found && isAlias == "true" && recordType == endpoint .RecordTypeA {
You can’t perform that action at this time.
0 commit comments