use authentication client with explicit version

pull/6/head
supereagle 2017-11-27 22:13:19 +08:00
parent 02a7c12cbd
commit 7dce7fe1eb
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ func Run(s *options.CloudControllerManagerServer) error {
clientBuilder = controller.SAControllerClientBuilder{
ClientConfig: restclient.AnonymousClientConfig(kubeconfig),
CoreClient: kubeClient.CoreV1(),
AuthenticationClient: kubeClient.Authentication(),
AuthenticationClient: kubeClient.AuthenticationV1(),
Namespace: "kube-system",
}
} else {

View File

@ -139,7 +139,7 @@ func Run(s *options.CMServer) error {
clientBuilder = controller.SAControllerClientBuilder{
ClientConfig: restclient.AnonymousClientConfig(kubeconfig),
CoreClient: kubeClient.CoreV1(),
AuthenticationClient: kubeClient.Authentication(),
AuthenticationClient: kubeClient.AuthenticationV1(),
Namespace: "kube-system",
}
} else {