Skip to content

Commit

Permalink
GCLOUD2-14662 Add missing timeouts to create pool opts (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbernady authored Jul 2, 2024
1 parent 12b52da commit ca6e308
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions gcore/loadbalancer/v1/loadbalancers/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ type CreateHealthMonitorOpts struct {
MaxRetriesDown int `json:"max_retries_down,omitempty"`
HTTPMethod *types.HTTPMethod `json:"http_method,omitempty"`
URLPath string `json:"url_path,omitempty"`
ExpectedCodes string `json:"expected_codes,omitempty"`
}

// CreatePoolMemberOpts represents options used to create a loadbalancer listener pool member.
Expand All @@ -138,6 +139,9 @@ type CreatePoolOpts struct {
HealthMonitor *CreateHealthMonitorOpts `json:"healthmonitor,omitempty"`
LoadBalancerAlgorithm types.LoadBalancerAlgorithm `json:"lb_algorithm,omitempty"`
SessionPersistence *CreateSessionPersistenceOpts `json:"session_persistence,omitempty"`
TimeoutClientData *int `json:"timeout_client_data,omitempty"`
TimeoutMemberData *int `json:"timeout_member_data,omitempty"`
TimeoutMemberConnect *int `json:"timeout_member_connect,omitempty"`
}

// CreateListenerOpts represents options used to create a loadbalancer listener.
Expand Down
4 changes: 2 additions & 2 deletions gcore/region/v1/regions/testing/fixtures.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ var (
TaskID: nil,
EndpointType: types.EndpointTypePublic,
ExternalNetworkID: "0521f854-8e34-4e67-8827-2aeb27fb3872",
SpiceProxyURL: *spiceURL,
SpiceProxyURL: spiceURL,
CreatedOn: createdTime,
KeystoneID: 1,
Keystone: keystones.Keystone{
Keystone: &keystones.Keystone{
ID: 1,
URL: *keystoneURL,
State: keystonetypes.KeystoneStateNew,
Expand Down

0 comments on commit ca6e308

Please sign in to comment.