danielfoehrKn / kubeswitch

The kubectx for operators.
https://danielfoehrkn.medium.com/the-case-of-kubeswitch-aff4b6a04ae7
Apache License 2.0
839 stars 79 forks source link

Timeout during get namespaces #127

Open hindraxxx opened 4 months ago

hindraxxx commented 4 months ago

Upon running switch namespace command i encountered these error message

> I0619 16:17:48.502002   39001 request.go:665] Waited for 1.109769459s due to client-side throttling, not priority and fairness, request: GET:https://10.64.12.2/apis/syncset.gatekeeper.sh/v1alpha1?timeout=32s
  I0619 16:17:58.700293   39001 request.go:665] Waited for 11.309767709s due to client-side throttling, not priority and fairness, request: GET:https://10.64.12.2/apis/autoscaling/v2?timeout=32s
WARN[0017] failed to retrieve current namespaces: context deadline exceeded

I noticed that the usual kubectl get namespace works fine, and the switch namespace is only failing on my staging env (which has bloated namespaces for testing, as in production it works fine.

Any possible solution for this?