-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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 hardcoded tmp dir path in kubectl test. #45648
Conversation
Hi @karataliu. 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 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. I understand the commands that are listed here. |
pkg/kubectl/cmd/util/factory_test.go
Outdated
dir, err := ioutil.TempDir("", "schemaCache") | ||
if err != nil { | ||
t.Errorf("Error getting tempDir: %v", err) | ||
t.FailNow() |
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.
t.Fatalf does both, doesn't it?
@k8s-bot ok to test |
One comment, otherwise looks good. Ping me when it's updated. |
@sttts Thanks for the review. Updated according to comment. |
@k8s-bot kops aws e2e test this |
Please squash both commits. Looks good now! |
@deads2k approved? |
Squashed commit pushed. Thanks |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, karataliu, sttts
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue |
What this PR does / why we need it:
Current case uses hardcoded tmp dir path, and it does not delete tmp dir after test run.
Which means 1. The case could not be run by different users (no permission) 2. /tmp dir keeps growing.
Which issue this PR fixes
Special notes for your reviewer:
Release note: