Skip to content
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

e2e: don't pass client via globvar #325

Merged
merged 1 commit into from
Nov 26, 2024
Merged

Conversation

stlaz
Copy link
Collaborator

@stlaz stlaz commented Nov 25, 2024

Use the kube-native way to construct a client by using the KUBECONFIG env var. That was done in the tests anyway (see the change to the Makefile).

The current system promotes using globvars which is a malpractice that should be avoided. It's only confusing new contributors. Let's remove it and just use the KUBECONFIG variable as in the rest of the Kubernetes ecosystem.

go.mod Outdated
@@ -8,6 +8,7 @@ require (
github.com/oklog/run v1.1.0
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.9.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh dear God, please no no no no no.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should explain.

Use the kube-native way to construct a client by using the KUBECONFIG
env var. That was done in the tests anyway (see the change to the
Makefile).
@ibihim ibihim merged commit c9f1c49 into brancz:master Nov 26, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants