Backport agent cacerts clientaccess

pull/2359/head
Erik Wilson 2020-10-06 15:54:21 -07:00
parent a1e3d2abab
commit f597418a56
No known key found for this signature in database
GPG Key ID: 28E43BB8BE202CF8
1 changed files with 1 additions and 1 deletions

View File

@ -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")