Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Support UDP LB Service #49

Merged
merged 7 commits into from
Feb 26, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/cloud-provider/load_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ func (bc *Baiducloud) validateService(service *v1.Service) error {
return fmt.Errorf("requested load balancer with no ports")
}
for _, port := range service.Spec.Ports {
if port.Protocol != v1.ProtocolTCP {
return fmt.Errorf("only TCP LoadBalancer is supported for Baidu CCE")
if port.Protocol != v1.ProtocolTCP && port.Protocol != v1.ProtocolUDP {
return fmt.Errorf("only TCP,UDP LoadBalancer is supported for Baidu CCE")
}
}
return nil
Expand Down