-
Notifications
You must be signed in to change notification settings - Fork 0
Bump supported kubernetes from 1.31 to 1.33 #9
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
Conversation
0cf1e73
to
c4516bc
Compare
test/e2e/e2e_test.go
Outdated
@@ -238,7 +238,8 @@ var _ = Describe("controller", Ordered, func() { | |||
|
|||
// login to target-sts-0 Pod using `kubectl exec` | |||
go func() { | |||
_, err := utils.Kubectl(ptmx, "exec", "target-sts-0", "-it", "--", "sleep", fmt.Sprintf("%d", 3*testIntervalSeconds+2)) | |||
// subsequent tests may take some time, so sleep longer duration | |||
_, err := utils.Kubectl(ptmx, "exec", "target-sts-0", "-it", "--", "sleep", "180") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
180 is a magic number, so how about commonizing with the arg of WithTimeout
?
It looks hard to get what the number means.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the time it takes to pull ubuntu-debug image.
cmd/login-protector/main.go
Outdated
Client: mgr.GetClient(), | ||
ClientSet: kubernetes.NewForConfigOrDie(mgr.GetConfig()), | ||
Scheme: mgr.GetScheme(), | ||
RequeueRateLimiter: workqueue.NewTypedItemExponentialFailureRateLimiter[ctrl.Request](1*time.Second, 1000*time.Second), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following PR says that the ceiling is too high.
kubernetes-sigs/controller-runtime#3107 (comment)
I think about 300 seconds is appropriate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
changes:
Result.Requeue
RequeueAfter
with exponential backoff instead ofRequeue
aqua.yaml
golangci-lint migrate
to support v2 and fix lint errors