Merge pull request #36 from jwierzbo/patch-1
Fix 401 error for in-cluster auth case
This commit is contained in:
@@ -67,7 +67,7 @@ func InClusterConfig() (*client.Configuration, error) {
|
||||
BasePath: "https://" + net.JoinHostPort(host, port),
|
||||
Host: net.JoinHostPort(host, port),
|
||||
Scheme: "https",
|
||||
DefaultHeader: map[string]string{"Authentication": "Bearer " + string(token)},
|
||||
DefaultHeader: map[string]string{"Authorization": "Bearer " + string(token)},
|
||||
UserAgent: defaultUserAgent,
|
||||
HTTPClient: c,
|
||||
}, nil
|
||||
|
||||
Reference in New Issue
Block a user