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

kube-rs can't use empty user like Go's kubectl can #1594

Closed
aviramha opened this issue Oct 8, 2024 · 0 comments · Fixed by #1595
Closed

kube-rs can't use empty user like Go's kubectl can #1594

aviramha opened this issue Oct 8, 2024 · 0 comments · Fixed by #1595

Comments

@aviramha
Copy link
Contributor

aviramha commented Oct 8, 2024

Current and expected behavior

When using kube-rs over kubectl proxy kube-rs client doesn't work while kubectl does

kubectl config set-cluster testt --server=http://localhost:8001 --insecure-skip-tls-verify=true
kubectl config set-context testt --cluster=testt
kubectl config use-context testt

then run kubectl get pods (using kube-rs' kubectl example) and it will fail, while official binary works.

Error: Failed to infer configuration: failed to infer config: in-cluster: (failed to read an incluster environment variable: environment variable not found), kubeconfig: (failed to find named user: )

Caused by:
    0: failed to infer config: in-cluster: (failed to read an incluster environment variable: environment variable not found), kubeconfig: (failed to find named user: )
    1: failed to find named user: 

Related - metalbear-co/mirrord#2803

Possible solution

No response

Additional context

No response

Environment

doesn't matter

Configuration and features

No response

Affected crates

kube-client

Would you like to work on fixing this bug?

Yes

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 a pull request may close this issue.

1 participant