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