mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
Move validation of load balancers only supporting TCP ports to validation.go.
This commit is contained in:
@@ -385,7 +385,6 @@ func (s *ServiceController) loadBalancerName(service *api.Service) string {
|
||||
return s.cloud.GetLoadBalancerName(s.clusterName, service.Namespace, service.Name)
|
||||
}
|
||||
|
||||
// TODO: Deduplicate this with the copy in pkg/registry/service/rest.go.
|
||||
func getTCPPorts(service *api.Service) ([]int, error) {
|
||||
ports := []int{}
|
||||
for i := range service.Spec.Ports {
|
||||
|
Reference in New Issue
Block a user