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

replace controller-runtime/pkg/ratelimiter to k8s.io/client-go/util/workqueue #601

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

chengjingtao
Copy link
Contributor

Changes

replace controller-runtime/pkg/ratelimiter to k8s.io/client-go/util/workqueue

in controller-runtime 1.19, controller-runtime/pkg/ratelimiter has been removed replace controller-runtime/pkg/ratelimiter to k8s.io/client-go/util/workqueue

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • spec PR link included
  • Follows the commit message standard
  • Meets the contributing guidelines (including
    functionality, content, code)
  • Test cases with documentation and functionality works as expected using current and related github repos (MUST deploy and check)
  • Release notes block below has been filled in or deleted (only if no user facing changes)

Release Notes

NONE

…orkqueue

in controller-runtime 1.19, controller-runtime/pkg/ratelimiter has been removed
replace controller-runtime/pkg/ratelimiter to k8s.io/client-go/util/workqueue
@@ -54,7 +54,7 @@ func MaxConCurrentReconciles(num int) BuilderOptionFunc {
}

// RateLimiter sets the rate limiter
func RateLimiter(rl ratelimiter.RateLimiter) BuilderOptionFunc {
func RateLimiter(rl workqueue.RateLimiter) BuilderOptionFunc {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

接口是完全一样的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant