-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Add more k8s tests #3491
Add more k8s tests #3491
Conversation
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
os.Setenv("KUBERNETES_SERVICE_HOST", "localhost") | ||
os.Setenv("KUBERNETES_SERVICE_PORT", "443") | ||
_, err := p.newK8sClient("") | ||
os.Clearenv() |
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.
How about defer
ing the cleanup right after we have set up the custom environment (i.e., right after line 2229)? This would protect us from p.newK8sClient
messing up and leaving our fixture in place longer than expected.
Similar below.
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.
What does this PR do?
Add and fix existing k8s tests
Motivation
More people using k8s, better tests to assist with refactoring
More