Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(lb): add support for configurable timeout for frontend #1170

Merged
merged 2 commits into from
Apr 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions scaleway/resource_lb_frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func resourceScalewayLbFrontendCreate(ctx context.Context, d *schema.ResourceDat
_, err = lbAPI.WaitForLb(&lb.ZonedAPIWaitForLBRequest{
Zone: zone,
LBID: lbID,
Timeout: scw.TimeDurationPtr(defaultInstanceServerWaitTimeout),
Timeout: scw.TimeDurationPtr(d.Timeout(schema.TimeoutCreate)),
RetryInterval: &retryInterval,
}, scw.WithContext(ctx))
if err != nil {
Expand Down Expand Up @@ -374,7 +374,7 @@ func resourceScalewayLbFrontendUpdate(ctx context.Context, d *schema.ResourceDat
_, err = lbAPI.WaitForLb(&lb.ZonedAPIWaitForLBRequest{
Zone: zone,
LBID: lbID,
Timeout: scw.TimeDurationPtr(defaultInstanceServerWaitTimeout),
Timeout: scw.TimeDurationPtr(d.Timeout(schema.TimeoutUpdate)),
RetryInterval: &retryInterval,
}, scw.WithContext(ctx))
// check err waiting process
Expand Down