Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

KubeConfig.from_service_account always defaults to default namespace #69

Open
inikolaev opened this issue May 29, 2020 · 1 comment
Open

Comments

@inikolaev
Copy link

I noticed that KubeConfig.from_service_account doesn't read namespace from /var/run/secrets/kubernetes.io/serviceaccount/namespace which causes it to use default namespace.

Because of that I have to manually filter by namespace when trying to access objects in current namespace.

Is that by-design? If not, I could work on a patch for this.

@hjacobs
Copy link
Owner

hjacobs commented May 30, 2020

It's not by design 😏

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

No branches or pull requests

2 participants