mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-28 03:47:34 +00:00
Change the cloud provider TCPLoadBalancerExists function to GetTCPLoadBalancer,
which returns the IP/DNS address of the load balancer, enabling more intelligent reconciliation in the service controller.
This commit is contained in:
@@ -173,12 +173,12 @@ func TestTCPLoadBalancer(t *testing.T) {
|
||||
t.Fatalf("TCPLoadBalancer() returned false - perhaps your stack doesn't support Neutron?")
|
||||
}
|
||||
|
||||
exists, err := lb.TCPLoadBalancerExists("noexist", "region")
|
||||
_, exists, err := lb.GetTCPLoadBalancer("noexist", "region")
|
||||
if err != nil {
|
||||
t.Fatalf("TCPLoadBalancerExists(\"noexist\") returned error: %s", err)
|
||||
t.Fatalf("GetTCPLoadBalancer(\"noexist\") returned error: %s", err)
|
||||
}
|
||||
if exists {
|
||||
t.Fatalf("TCPLoadBalancerExists(\"noexist\") returned true")
|
||||
t.Fatalf("GetTCPLoadBalancer(\"noexist\") returned exists")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user