Skip to content

Commit

Permalink
Add ProxyProtocol to LoadBalancer HealthCheck
Browse files Browse the repository at this point in the history
This will allow customers to enable/disable PROXY protocol on their health checks. If no value is provided then it will default to the LBs PROXY protocol config.
  • Loading branch information
bbassingthwaite committed Jun 11, 2024
1 parent 64578a9 commit bc1cdf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions load_balancers.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ type HealthCheck struct {
ResponseTimeoutSeconds int `json:"response_timeout_seconds,omitempty"`
HealthyThreshold int `json:"healthy_threshold,omitempty"`
UnhealthyThreshold int `json:"unhealthy_threshold,omitempty"`
ProxyProtocol *bool `json:"proxy_protocol,omitempty"`
}

// String creates a human-readable description of a HealthCheck.
Expand Down
2 changes: 2 additions & 0 deletions load_balancers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,7 @@ func TestLoadBalancers_AsRequest(t *testing.T) {
ResponseTimeoutSeconds: 10,
HealthyThreshold: 3,
UnhealthyThreshold: 3,
ProxyProtocol: PtrTo(true),
},
StickySessions: &StickySessions{
Type: "cookies",
Expand Down Expand Up @@ -1242,6 +1243,7 @@ func TestLoadBalancers_AsRequest(t *testing.T) {
ResponseTimeoutSeconds: 10,
HealthyThreshold: 3,
UnhealthyThreshold: 3,
ProxyProtocol: PtrTo(true),
},
StickySessions: &StickySessions{
Type: "cookies",
Expand Down

0 comments on commit bc1cdf0

Please sign in to comment.