Commit 7dce7fe1 authored by supereagle's avatar supereagle

use authentication client with explicit version

parent 02a7c12c
...@@ -136,7 +136,7 @@ func Run(s *options.CloudControllerManagerServer) error { ...@@ -136,7 +136,7 @@ func Run(s *options.CloudControllerManagerServer) error {
clientBuilder = controller.SAControllerClientBuilder{ clientBuilder = controller.SAControllerClientBuilder{
ClientConfig: restclient.AnonymousClientConfig(kubeconfig), ClientConfig: restclient.AnonymousClientConfig(kubeconfig),
CoreClient: kubeClient.CoreV1(), CoreClient: kubeClient.CoreV1(),
AuthenticationClient: kubeClient.Authentication(), AuthenticationClient: kubeClient.AuthenticationV1(),
Namespace: "kube-system", Namespace: "kube-system",
} }
} else { } else {
......
...@@ -139,7 +139,7 @@ func Run(s *options.CMServer) error { ...@@ -139,7 +139,7 @@ func Run(s *options.CMServer) error {
clientBuilder = controller.SAControllerClientBuilder{ clientBuilder = controller.SAControllerClientBuilder{
ClientConfig: restclient.AnonymousClientConfig(kubeconfig), ClientConfig: restclient.AnonymousClientConfig(kubeconfig),
CoreClient: kubeClient.CoreV1(), CoreClient: kubeClient.CoreV1(),
AuthenticationClient: kubeClient.Authentication(), AuthenticationClient: kubeClient.AuthenticationV1(),
Namespace: "kube-system", Namespace: "kube-system",
} }
} else { } else {
......
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