Unverified Commit 263502d0 authored by Erik Wilson's avatar Erik Wilson Committed by GitHub

Merge pull request #2361 from erikwilson/backport-agent-cacerts-1.17

Backport 1.17 agent cacerts clientaccess
parents e7ca5bc3 ec8babbd
......@@ -159,7 +159,7 @@ func accessInfoToKubeConfig(destFile, server, token string) error {
}
func validateToken(u url.URL, cacerts []byte, username, password string) error {
u.Path = "/apis"
u.Path = "/cacerts"
_, err := get(u.String(), GetHTTPClient(cacerts), username, password)
if err != nil {
return errors.Wrap(err, "token is not valid")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment