mirror of
https://github.com/rancher/rke.git
synced 2025-09-19 01:44:28 +00:00
Create loglink for etcd-rolling-snapshots
This commit is contained in:
committed by
Denise
parent
2c270fa5ab
commit
2bced88bad
@@ -68,6 +68,9 @@ func RunEtcdPlane(
|
|||||||
if err := pki.SaveBackupBundleOnHost(ctx, host, rkeToolsImage, EtcdSnapshotPath, prsMap); err != nil {
|
if err := pki.SaveBackupBundleOnHost(ctx, host, rkeToolsImage, EtcdSnapshotPath, prsMap); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if err := createLogLink(ctx, host, EtcdSnapshotContainerName, ETCDRole, alpineImage, prsMap); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if err := docker.DoRemoveContainer(ctx, host.DClient, EtcdSnapshotContainerName, host.Address); err != nil {
|
if err := docker.DoRemoveContainer(ctx, host.DClient, EtcdSnapshotContainerName, host.Address); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Reference in New Issue
Block a user