Skip to content

Commit

Permalink
Merge pull request #232 from chengxiangdong/feat
Browse files Browse the repository at this point in the history
Ignore services with empty loadbalancerClass if enabling loadbalancerClass
  • Loading branch information
k8s-ci-robot authored Oct 27, 2023
2 parents 4fa5870 + 50488e7 commit 7ce6fcb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/cloudprovider/huaweicloud/huaweicloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,11 @@ func (h *CloudProvider) Initialize(clientBuilder cloudprovider.ControllerClientB

// TCPLoadBalancer returns an implementation of TCPLoadBalancer for Huawei Web Services.
func (h *CloudProvider) LoadBalancer() (cloudprovider.LoadBalancer, bool) {
// Only services with LoadBalancerClass=huaweicloud.com/elb are processed.
if h.loadbalancerOpts.LoadBalancerClass != "" {
return nil, false
}

return h, true
}

Expand Down

0 comments on commit 7ce6fcb

Please sign in to comment.