servicecontroller: last state applied to LB vs last state seen

We need the last state seen for interpreting the change-stream,
separately we need to track the last state we successfully applied to the
load balancer.
This commit is contained in:
Justin Santa Barbara
2015-06-16 18:59:03 -04:00
parent f7cb6e9844
commit 1561fce81c
2 changed files with 15 additions and 8 deletions

View File

@@ -206,7 +206,7 @@ func TestUpdateNodesInExternalLoadBalancer(t *testing.T) {
var services []*cachedService
for _, service := range item.services {
services = append(services, &cachedService{service: service})
services = append(services, &cachedService{lastState: service, appliedState: service})
}
if err := controller.updateLoadBalancerHosts(services, hosts); err != nil {
t.Errorf("unexpected error: %v", err)