mirror of https://github.com/kubernetes/kops.git
Merge pull request #3859 from justinsb/upsert_dns_records
Automatic merge from submit-queue. Use upsert when applying DNS records
This commit is contained in:
commit
2b2b5971b5
|
@ -567,14 +567,9 @@ func (o *dnsOp) updateRecords(k recordKey, newRecords []string, ttl int64) error
|
|||
return err
|
||||
}
|
||||
|
||||
if existing != nil {
|
||||
glog.V(2).Infof("will replace existing dns record %s %s", existing.Type(), FixWildcards(existing.Name()))
|
||||
cs.Remove(existing)
|
||||
}
|
||||
|
||||
glog.V(2).Infof("Adding DNS changes to batch %s %s", k, newRecords)
|
||||
rr := rrsProvider.New(fqdn, newRecords, ttl, rrstype.RrsType(k.RecordType))
|
||||
cs.Add(rr)
|
||||
cs.Upsert(rr)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue