pykube
pykube copied to clipboard
KubeConfig.from_service_account always defaults to default namespace
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.
It's not by design :smirk: