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
Fix using variables in the loop in vsphere_util #104410
Conversation
Hi @skyguard1. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
/ok-to-test
/assign @gnufied |
/lgtm |
/priority important-soon |
lets merge this and backport to older releases as well? |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheftako, skyguard1 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
@skyguard1 do you mind creating backport requests for 1.20, 1.21 and 1.22 for this PR? Those are the versions where the issue is and I would like us to fix it. |
@gnufied Of course I am willing to do this.It is my pleasure |
@gnufied I found that the function |
In my opinion, we don’t need to fix this on 1.20, right? |
@skyguard1 sure, whichever version has the related code - lets open PRs to fix it |
Can you also backport this PR to 1.22? |
@gnufied Sure |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Use loop variables from within func literals in defer and go statements. Such variables might have unexpected values because they are not copied to func literals, and the func literals in defer and go are not executed immediately.
For more information about closures and goroutines, see https://golang.org/doc/faq#closures_and_goroutines, thanks