use authentication client with explicit version
This commit is contained in:
@@ -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 {
|
|||||||
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 {
|
||||||
|
Reference in New Issue
Block a user