mirror of
https://github.com/rancher/rke.git
synced 2025-08-31 14:36:32 +00:00
Convert aarch64 to arm64 for ETCD_UNSUPPORTED_ARCH env var
This commit is contained in:
committed by
Craig Jellick
parent
65cda9f50d
commit
b6d90f4110
@@ -775,6 +775,10 @@ func (c *Cluster) BuildEtcdProcess(host *hosts.Host, etcdHosts []*hosts.Host, pr
|
||||
Env = append(Env, fmt.Sprintf("ETCDCTL_CACERT=%s", pki.GetCertPath(pki.CACertName)))
|
||||
Env = append(Env, fmt.Sprintf("ETCDCTL_CERT=%s", pki.GetCertPath(nodeName)))
|
||||
Env = append(Env, fmt.Sprintf("ETCDCTL_KEY=%s", pki.GetKeyPath(nodeName)))
|
||||
|
||||
if architecture == "aarch64" {
|
||||
architecture = "arm64"
|
||||
}
|
||||
Env = append(Env, fmt.Sprintf("ETCD_UNSUPPORTED_ARCH=%s", architecture))
|
||||
|
||||
Env = append(Env, c.Services.Etcd.ExtraEnv...)
|
||||
|
Reference in New Issue
Block a user