mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Fix block-local err bug in service_helper.go
The real error message goes out of scope before we try to log it.
This commit is contained in:
parent
fae7285b00
commit
3ec2b19611
@ -89,7 +89,8 @@ func (cc *clusterClientCache) syncService(key, clusterName string, clusterCache
|
||||
|
||||
if needUpdate {
|
||||
for i := 0; i < clientRetryCount; i++ {
|
||||
if err := sc.ensureDnsRecords(clusterName, cachedService); err == nil {
|
||||
err := sc.ensureDnsRecords(clusterName, cachedService)
|
||||
if err == nil {
|
||||
break
|
||||
}
|
||||
glog.V(4).Infof("Error ensuring DNS Records for service %s on cluster %s: %v", key, clusterName, err)
|
||||
|
Loading…
Reference in New Issue
Block a user