-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 a flag to override server address in the generated config #2745
Conversation
|
Welcome @Shadi! |
Hi @Shadi. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Shadi The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thank you for your PR. CONTRIBUTING.md => https://kind.sigs.k8s.io/docs/contributing/getting-started/ We do not currently require KEPs like the rest of kubernetes, but we do prefer to flesh out the feature in an issue. For example on such an issue I would ask:
|
Hello @BenTheElder, thanks for taking a look
this indeed similar to Need a way to get kubeconfig with node IP #1558, the same
I decided to create this PR since it seemed to be not a lot of work to implement this change in a way the |
you can use |
Or better yet: I think We should really follow up on those issues and rethink these flags for some additional options though. |
We are using Kind in one of our project integration tests suites, these tests run inside a docker container using github actions, when kind creates a cluster as part of the test run preparation it uses the default "127.0.0.1" for server address: https://github.com/kubernetes-sigs/kind/blob/main/pkg/internal/apis/config/default.go#L57
when the test runs a
kubectl
command it can't connect to the created cluster sincekubectl
is being ran from inside a container and127.0.0.1
resolves to that container instead of the cluster on the host machine.This change would allow us to set a different address when preparing for tests so it can execute
kubectl
commands and connect to the created cluster