-
Notifications
You must be signed in to change notification settings - Fork 810
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
Update Supported Kubernetes to 1.26, 1.27, 1.28 #3450
Update Supported Kubernetes to 1.26, 1.27, 1.28 #3450
Conversation
Build Succeeded 👏 Build Id: 55e366cf-fe1e-473b-9583-7bf005157f8b The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
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.
Did you perform step "Regenerate Kubernetes resource includes (e.g. ObjectMeta, PodTemplateSpec)"? I didn't see any change for ObjectMeta and PodTemplateSpec.
@@ -81,6 +81,7 @@ func TestAllocatorAllocate(t *testing.T) { | |||
|
|||
require.NoError(t, a.Run(ctx)) | |||
// wait for it to be up and running | |||
// nolint:staticcheck | |||
err := wait.PollImmediate(time.Second, 10*time.Second, func() (done bool, err error) { |
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.
I saw you fixed this lint warning with PollUntilContextTimeout
which looks correct. Do you mind fix these too? We can also do this in a separate PR. Up to you.
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.
sure, will replace all PollImmediate
with PollUntilContextTimeout
.
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.
I've replaced PollImmediate
with PollUntilContextTimeout
.
Is it fine to replace wait.Poll(time.Second, 10*time.Second, func() (bool, error)
with wait.PollUntilContextTimeout(ctx, time.Second, 10*time.Second, true, func(ctx context.Context) (bool, error))
?
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.
Yes, wait.Poll
can be replaced with wait.PollUntilContextTimeout
. Again, up to you whether do that in this PR or a following up PR.
@@ -692,6 +692,7 @@ func Retry(backoff wait.Backoff, fn func() error) error { | |||
return false, nil | |||
} | |||
}) | |||
// nolint:staticcheck |
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.
Let's create an issue to track the fix.
Yes, I've executed this step, and within this PR, neither _io.k8s.api.core.v1.PodTemplateSpec.yaml nor _io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta.yaml were modified. |
Build Succeeded 👏 Build Id: e1c15609-451a-4dbb-8b50-241dcf84ad69 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
Build Failed 😱 Build Id: 5b74f521-a757-4020-b818-305c95d0fef6 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Failed 😱 Build Id: 6eddc291-731e-45e1-8fca-92ca1fe351ba To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Failed 😱 Build Id: 9a4439d7-632e-49a2-8079-3f670ba0b39d To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Succeeded 👏 Build Id: 0697fc53-cd79-49e2-bb40-224279f746b2 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
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.
There are some deprecated methods can be replaced. But I'm totally fine to fix it in a following PR if you prefer.
@@ -295,6 +295,7 @@ func (s *SDKServer) WaitForConnection(ctx context.Context) error { | |||
} | |||
|
|||
try := 0 | |||
// nolint:staticcheck | |||
return wait.PollImmediateInfiniteWithContext(ctx, 4*time.Second, func(ctx context.Context) (bool, error) { |
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 can also be replaced with PollUntilContextCancel
@@ -292,6 +292,7 @@ func (f *Framework) WaitForGameServerState(t *testing.T, gs *agonesv1.GameServer | |||
// Each Allocated GameServer gets deleted allocDuration after it was Allocated. | |||
// GameServers will continue to be Allocated until a message is passed to the done channel. | |||
func (f *Framework) CycleAllocations(ctx context.Context, t *testing.T, flt *agonesv1.Fleet, period time.Duration, allocDuration time.Duration) { | |||
// nolint:staticcheck | |||
err := wait.PollImmediateUntil(period, func() (bool, error) { |
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 can also be replaced with PollUntilContextCancel
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: gongmax, Kalaiselvi84 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Will create a separate PR for this fix😅 |
What type of PR is this?
/kind breaking
What this PR does / Why we need it:
Which issue(s) this PR fixes:
Work on #3371
Special notes for your reviewer: