mirror of https://github.com/k3s-io/k3s
Merge pull request #8576 from a-robinson/svc
Fix misordered assignment in service controllerpull/6/head
commit
b5c1098cb6
|
@ -177,9 +177,9 @@ func (s *ServiceController) processDelta(delta *cache.Delta) (error, bool) {
|
||||||
if !ok {
|
if !ok {
|
||||||
return fmt.Errorf("Service %s not in cache even though the watcher thought it was. Ignoring the deletion.", key), notRetryable
|
return fmt.Errorf("Service %s not in cache even though the watcher thought it was. Ignoring the deletion.", key), notRetryable
|
||||||
}
|
}
|
||||||
namespacedName = types.NamespacedName{service.Namespace, service.Name}
|
|
||||||
service = cachedService.service
|
service = cachedService.service
|
||||||
delta.Object = cachedService.service
|
delta.Object = cachedService.service
|
||||||
|
namespacedName = types.NamespacedName{service.Namespace, service.Name}
|
||||||
} else {
|
} else {
|
||||||
namespacedName.Namespace = service.Namespace
|
namespacedName.Namespace = service.Namespace
|
||||||
namespacedName.Name = service.Name
|
namespacedName.Name = service.Name
|
||||||
|
|
Loading…
Reference in New Issue