Skip to content

Commit

Permalink
resource_group: export DegradeModeWaitDuration (#8156)
Browse files Browse the repository at this point in the history
ref #4399

Signed-off-by: disksing <i@disksing.com>
  • Loading branch information
disksing authored May 8, 2024
1 parent 740f15e commit 1ffffc2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/resource_group/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ func WithWaitRetryTimes(times int) ResourceControlCreateOption {
}
}

// WithDegradedModeWaitDuration is the option to set the wait duration for degraded mode.
func WithDegradedModeWaitDuration(d time.Duration) ResourceControlCreateOption {
return func(controller *ResourceGroupsController) {
controller.ruConfig.DegradedModeWaitDuration = d
}
}

var _ ResourceGroupKVInterceptor = (*ResourceGroupsController)(nil)

// ResourceGroupsController implements ResourceGroupKVInterceptor.
Expand Down

0 comments on commit 1ffffc2

Please sign in to comment.