diff --git a/cmd/cloud-controller-manager/app/controllermanager.go b/cmd/cloud-controller-manager/app/controllermanager.go index c93da56dad..8b4631be15 100644 --- a/cmd/cloud-controller-manager/app/controllermanager.go +++ b/cmd/cloud-controller-manager/app/controllermanager.go @@ -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 { diff --git a/cmd/kube-controller-manager/app/controllermanager.go b/cmd/kube-controller-manager/app/controllermanager.go index d08e9658a8..d68fd8c64b 100644 --- a/cmd/kube-controller-manager/app/controllermanager.go +++ b/cmd/kube-controller-manager/app/controllermanager.go @@ -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 {