-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Lock all possible kubecfg files at the beginning of ModifyConfig. #28232
Conversation
GCE e2e build/test passed for commit c4e477c8fc128f06701fc2c6a32717015f3a6438. |
if err = os.MkdirAll(dir, 0755); err != nil { | ||
return err | ||
} | ||
} |
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.
At this point, I would move this functionality to lockFile
.
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.
Done.
Addressed comments. PTAL. |
GCE e2e build/test passed for commit 0057627. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 0057627. |
Automatic merge from submit-queue |
Removing label |
Commit found in the "release-1.3" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
…ck-of-#28232-upstream-release-1.3 Automatic merge from submit-queue Automated cherry pick of kubernetes#28232 Cherry pick of kubernetes#28232 on release-1.3.
Prevent concurrent calls to ModifyConfig on the same (or overlapping) kubeconfig files.