Initial support for TokenFile in the client config.

This commit is contained in:
Brendan Burns
2016-08-15 21:59:49 -07:00
parent b5ce23c48d
commit 50089f6c81
5 changed files with 87 additions and 2 deletions

View File

@@ -215,7 +215,6 @@ func (rules *ClientConfigLoadingRules) Load() (*clientcmdapi.Config, error) {
errlist = append(errlist, err)
}
}
return config, utilerrors.NewAggregate(errlist)
}
@@ -530,7 +529,7 @@ func GetClusterFileReferences(cluster *clientcmdapi.Cluster) []*string {
}
func GetAuthInfoFileReferences(authInfo *clientcmdapi.AuthInfo) []*string {
return []*string{&authInfo.ClientCertificate, &authInfo.ClientKey}
return []*string{&authInfo.ClientCertificate, &authInfo.ClientKey, &authInfo.TokenFile}
}
// ResolvePaths updates the given refs to be absolute paths, relative to the given base directory