Merge pull request #6669 from wallrj/stop-using-deprecated-singleinflight-field

Stop using the deprecated SingleInflight field of miekg/dns
This commit is contained in:
jetstack-bot 2024-01-27 11:30:17 +00:00 committed by GitHub
commit 8c7fc0672d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -34,4 +34,4 @@ issues:
text: "SA(1002|1006|4000|4006)"
- linters:
- staticcheck
text: "(NewCertManagerBasicCertificate|DeprecatedCertificateTemplateFromCertificateRequestAndAllowInsecureCSRUsageDefinition|testCA.Subjects|RootCAs.Subjects|pki.GenerateTemplate|c.SingleInflight)"
text: "(NewCertManagerBasicCertificate|DeprecatedCertificateTemplateFromCertificateRequestAndAllowInsecureCSRUsageDefinition|testCA.Subjects|RootCAs.Subjects|pki.GenerateTemplate)"

View File

@ -127,7 +127,6 @@ func (r *DNSProvider) changeRecord(action, fqdn, zone, value string, ttl int) er
// Setup client
c := new(dns.Client)
c.TsigProvider = tsigHMACProvider(r.tsigSecret)
c.SingleInflight = true
// TSIG authentication / msg signing
if len(r.tsigKeyName) > 0 && len(r.tsigSecret) > 0 {
m.SetTsig(dns.Fqdn(r.tsigKeyName), r.tsigAlgorithm, 300, time.Now().Unix())