mirror of https://github.com/k3s-io/k3s
use authentication client with explicit version
parent
02a7c12cbd
commit
7dce7fe1eb
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue