Skip to content

Commit

Permalink
GCLOUD2-14220: Remove support of SOURCE_IP_PORT (it never worked) (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtsiomAntropau authored Apr 26, 2024
1 parent b3d6d47 commit 8e5f714
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gcore/loadbalancer/v1/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const (
LoadBalancerAlgorithmRoundRobin LoadBalancerAlgorithm = "ROUND_ROBIN"
LoadBalancerAlgorithmLeastConnections LoadBalancerAlgorithm = "LEAST_CONNECTIONS"
LoadBalancerAlgorithmSourceIP LoadBalancerAlgorithm = "SOURCE_IP"
LoadBalancerAlgorithmSourceIPPort LoadBalancerAlgorithm = "SOURCE_IP_PORT"

PersistenceTypeAppCookie PersistenceType = "APP_COOKIE"
PersistenceTypeHTTPCookie PersistenceType = "HTTP_COOKIE"
Expand Down Expand Up @@ -208,8 +207,7 @@ func (lba LoadBalancerAlgorithm) IsValid() error {
switch lba {
case LoadBalancerAlgorithmRoundRobin,
LoadBalancerAlgorithmLeastConnections,
LoadBalancerAlgorithmSourceIP,
LoadBalancerAlgorithmSourceIPPort:
LoadBalancerAlgorithmSourceIP:
return nil
}
return fmt.Errorf("invalid LoadBalancerAlgorithm: %v", lba)
Expand All @@ -235,7 +233,6 @@ func (lba LoadBalancerAlgorithm) List() []LoadBalancerAlgorithm {
LoadBalancerAlgorithmRoundRobin,
LoadBalancerAlgorithmLeastConnections,
LoadBalancerAlgorithmSourceIP,
LoadBalancerAlgorithmSourceIPPort,
}
}

Expand Down

0 comments on commit 8e5f714

Please sign in to comment.