kubens 0.11.0 on MacOS does not change the active namespace
Author: osilvaCreated May 12, 2026Updated Jul 27, 2026
LabelsBugPending repro
Recently moved to a new Macbook and installed kubectx 0.11.0 using brew. I am unable to change the active namespace. For example if I have the namespaces: metrics, kube-system and I issue the command: kubens kube-system I see:
❯ kubens kube-system
✔ Active namespace is "kube-system"but then I see the following when getting the pods:
❯ kubectl get pods
No resources found in default namespace.I can issue kubectl commands and explicitly include the namespace and everything works:
❯ kubectl -n kube-system
NAME READY STATUS RESTARTS AGE
kube-proxy-2xqjx 1/1 Running 0 73m
kube-proxy-54656 1/1 Running 0 3h11mNo matter which namespace I choose, I still see "No resources found in ..." If I install kubecx 0.9.5 or 0.10.2 I don't have this issue. With 0.11.0 there are no errors and I have tried using --force but still the namespace is set to default.
Source: ahmetb/kubectx