mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
Remove obsolete TCPLoadBalancer interface method.
This commit is contained in:
parent
915bc04488
commit
ed8748a6b6
@ -1269,19 +1269,6 @@ func (s *AWSCloud) describeLoadBalancer(region, name string) (*elb.LoadBalancerD
|
|||||||
return ret, nil
|
return ret, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// TCPLoadBalancerExists implements TCPLoadBalancer.TCPLoadBalancerExists.
|
|
||||||
func (self *AWSCloud) TCPLoadBalancerExists(name, region string) (bool, error) {
|
|
||||||
lb, err := self.describeLoadBalancer(name, region)
|
|
||||||
if err != nil {
|
|
||||||
return false, err
|
|
||||||
}
|
|
||||||
|
|
||||||
if lb != nil {
|
|
||||||
return true, nil
|
|
||||||
}
|
|
||||||
return false, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Retrieves instance's vpc id from metadata
|
// Retrieves instance's vpc id from metadata
|
||||||
func (self *AWSCloud) findVPCID() (string, error) {
|
func (self *AWSCloud) findVPCID() (string, error) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user