pykube icon indicating copy to clipboard operation
pykube copied to clipboard

KubeConfig.from_service_account always defaults to default namespace

Open inikolaev opened this issue 4 years ago • 1 comments

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.

inikolaev avatar May 29 '20 15:05 inikolaev

It's not by design :smirk:

hjacobs avatar May 30 '20 18:05 hjacobs