-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🌱 Randomly generated namespace in controllers pkg tests #4959
🌱 Randomly generated namespace in controllers pkg tests #4959
Conversation
Hi @GrigoriyMikhalkin. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
bfa8fcf
to
98879a0
Compare
/ok-to-test |
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.
@GrigoriyMikhalkin thanks for this PR, tests cleanups are always welcome!
Two general comments before going thought a more detailed review:
- Please make sure to cleanup the randomly generated namespaces
- Instead of moving tests from hardcoded default to default constant, what about moving to a random generated namespace so we can ensure better isolation?
7008b15
to
930bd12
Compare
/lgtm |
930bd12
to
0369552
Compare
You can also add a label to do that btw.: |
@schrej It does, although we still prefer if folks squash to avoid long commit message descriptions that aren't super useful later on |
I thought PR's merged via Prow squash are not picked up by our release note tool? |
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.
/assign @fabriziopandini @sbueringer
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini 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 |
Partly solves #4629. Only
controllers
pkg is updated.Use of randomly generated namespaces was started in #4698. This PR continues it's work in the same manner.
env.CreateNamespace
is used everywhere internalenvtest
package is used for testing. And everywhere else(for example tests that usefake.Client
fromcontroller-runtime
) it replaces"default"
and"test"
namespace names with constantmetav1.NamespaceDefault
.