mirror of https://github.com/k3s-io/k3s
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 ```pull/6/head
commit
f4bfcba0c8
|
@ -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 {
|
||||||
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 {
|
||||||
|
|
Loading…
Reference in New Issue