-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
kubectl access works fine, but "out-of-cluster-client-configuration" says 'cannot list resource "pods"' #1358
Comments
I've figured this out. It was about namespaces. I have additional questions that I'll file as separate issues. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
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-sigs/prow repository. |
On Windows 11, I have multiple versions of kubectl installed, and I can work with our remote clusters perfectly fine with it (using corresponding version of kubectl), including listing pods.
I'm now experimenting with writing a facade for common steps using client-go. To start, I tried just running the "out-of-cluster-client-configuration" sample after using kubectl to change my context to a cluster that I know I can access. That cluster is running v1.24.9, and I normally use kubectl v1.24.0 to work with it.
When I run the sample, it fails with:
panic: pods is forbidden: User "...@..." cannot list resource "pods" in API group "" at the cluster scope
What might I be missing?
Is the problem here that this build is using, by default, the latest version of client-go, which may not work with our older v1.24.0 k8s cluster? This sample just has the main.go, with no mod file for version specifications.
The text was updated successfully, but these errors were encountered: