helm/helm

TestUserAgentHeaderInK8sRESTClientConfig appears to fail when you have a bad .kube/config

Open

#31470 opened on Nov 9, 2025

View on GitHub
 (4 comments) (1 reaction) (0 assignees)Go (29,815 stars) (7,602 forks)batch import
bughelp wanted

Description

TestUserAgentHeaderInK8sRESTClientConfig appears to fail when you have a bad .kube/config

In my case, current context was no longer a valid cluster.

Ideally the unit tests wouldn't rely on the current k8s environment.

Contributor guide