Skip to content

Commit

Permalink
Fix 401 error for in-cluster auth case
Browse files Browse the repository at this point in the history
  • Loading branch information
jwierzbo authored Feb 22, 2020
1 parent c757968 commit c2520e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubernetes/config/incluster_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2520e0

Please sign in to comment.