mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 23:19:26 +00:00
Re-add the ability to load certs from the config file.
This commit is contained in:
@@ -188,6 +188,15 @@ func main() {
|
||||
}
|
||||
clientConfig.Username = auth.User
|
||||
clientConfig.Password = auth.Password
|
||||
if auth.CAFile != "" {
|
||||
clientConfig.CAFile = auth.CAFile
|
||||
}
|
||||
if auth.CertFile != "" {
|
||||
clientConfig.CertFile = auth.CertFile
|
||||
}
|
||||
if auth.KeyFile != "" {
|
||||
clientConfig.KeyFile = auth.KeyFile
|
||||
}
|
||||
}
|
||||
kubeClient, err := client.New(clientConfig)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user