diff --git a/client/resource_group/controller/controller.go b/client/resource_group/controller/controller.go index 79bd6a9c3a6..11ea3f7997d 100755 --- a/client/resource_group/controller/controller.go +++ b/client/resource_group/controller/controller.go @@ -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.