helm/helm

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

Open

#31,470 opened on Nov 9, 2025

View on GitHub
 (6 comments) (1 reaction) (0 assignees)Go (7,602 forks)batch import
Stalebughelp wanted

Repository metrics

Stars
 (29,815 stars)
PR merge metrics
 (Avg merge 40d 17h) (48 merged PRs in 30d)

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