Unverified Commit f4bfcba0 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #56411 from supereagle/authentication-client-with-version

Automatic merge from submit-queue (batch tested with PRs 57651, 56411, 56779, 57523, 57624). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Use authentication client with explicit version **What this PR does / why we need it**: Authentication client without explicit version has been deprecated, change them to the one with explicit version. **Which issue(s) this PR fixes**: Fixes partially #55993 **Special notes for your reviewer**: /cc @caesarxuchao @sttts **Release note**: ```release-note NONE ```
parents 2df01488 7dce7fe1
...@@ -140,7 +140,7 @@ func Run(s *options.CloudControllerManagerServer) error { ...@@ -140,7 +140,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 {
......
...@@ -146,7 +146,7 @@ func Run(s *options.CMServer) error { ...@@ -146,7 +146,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