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

gardenctl doesn't set kubeconfig #491

Open
hovali opened this issue Dec 10, 2024 · 0 comments
Open

gardenctl doesn't set kubeconfig #491

hovali opened this issue Dec 10, 2024 · 0 comments
Labels

Comments

@hovali
Copy link

hovali commented Dec 10, 2024

What happened:
There is connection to garden instrustion: https://gardener.cloud/docs/dashboard/connect-kubectl/

kubectl get namespaces command tries ping local instead of remote connection.
Image

What you expected to happen:
kubectl get namespaces command shows correct output with remote urls.

How to reproduce it (as minimally and precisely as possible):

  1. Install everything mentioned in the Tools section in the instruction above (kubectl, kubelogin, gardenlogin, gardenctl).
  2. Need to download 2 kubeconfigs - one from My Account section of gardner and the kubeconfig-gardenlogin.
  3. Run the below command: gardenctl config set-garden <sap-landscape> --kubeconfig "<path-to-garden-is-kubeconfig>".
  4. Use export KUBECONFIG=<path-to-gardenlogin--is-kubeconfig>.
  5. Run the below command: kubectl get namespaces

Anything else we need to know:

Environment:
kubelogin version v1.31.0,
kubectl version: v1.28.2,
gardenlogin version: version.Info{Major:"0", Minor:"6", GitVersion:"v0.6.0", GitCommit:"8b9d37b6f68f79f3a34fd1dbd205bb5a518c4632", GitTreeState:"clean", BuildDate:"2024-11-12T17:37:05+00:00", GoVersion:"go1.23.2", Compiler:"gc", Platform:"windows/amd64"},
gardenctl version: version.Info{Major:"2", Minor:"9", GitVersion:"v2.9.0", GitCommit:"4475a8e8e64952743803c79d16784191ed0764c3", GitTreeState:"clean", BuildDate:"2024-10-23T13:42:12+00:00", GoVersion:"go1.23.2", Compiler:"gc", Platform:"windows/amd64"},
cygwin,
windows 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant