Merge pull request #36 from jwierzbo/patch-1

Fix 401 error for in-cluster auth case
This commit is contained in:
Kubernetes Prow Robot
2020-02-22 09:16:47 -08:00
committed by GitHub

View File

@@ -67,7 +67,7 @@ func InClusterConfig() (*client.Configuration, error) {
BasePath: "https://" + net.JoinHostPort(host, port), BasePath: "https://" + net.JoinHostPort(host, port),
Host: net.JoinHostPort(host, port), Host: net.JoinHostPort(host, port),
Scheme: "https", Scheme: "https",
DefaultHeader: map[string]string{"Authentication": "Bearer " + string(token)}, DefaultHeader: map[string]string{"Authorization": "Bearer " + string(token)},
UserAgent: defaultUserAgent, UserAgent: defaultUserAgent,
HTTPClient: c, HTTPClient: c,
}, nil }, nil