mirror of
https://github.com/rancher/rke.git
synced 2025-04-27 19:25:44 +00:00
Regenerate etcd certificate from legacy cluster
This commit is contained in:
parent
d3d107a09a
commit
4d47a376ad
@ -361,7 +361,7 @@ func GenerateEtcdCertificates(ctx context.Context, certs map[string]CertificateP
|
||||
etcdAltNames := GetAltNames(etcdHosts, clusterDomain, kubernetesServiceIP, []string{})
|
||||
for _, host := range etcdHosts {
|
||||
etcdName := GetEtcdCrtName(host.InternalAddress)
|
||||
if _, ok := certs[etcdName]; ok && !rotate {
|
||||
if _, ok := certs[etcdName]; ok && certs[etcdName].CertificatePEM != "" && !rotate {
|
||||
continue
|
||||
}
|
||||
var serviceKey *rsa.PrivateKey
|
||||
|
Loading…
Reference in New Issue
Block a user