1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-09 02:51:15 +00:00

Remove etcd snapshot when option is disabled

This commit is contained in:
galal-hussein
2018-11-10 01:34:25 +02:00
committed by Alena Prokharchyk
parent 696b61679c
commit 3480a020fc

View File

@@ -63,6 +63,10 @@ func RunEtcdPlane(
if err := pki.SaveBackupBundleOnHost(ctx, host, alpineImage, EtcdSnapshotPath, prsMap); err != nil {
return err
}
} else {
if err := docker.DoRemoveContainer(ctx, host.DClient, EtcdSnapshotContainerName, host.Address); err != nil {
return err
}
}
if err := createLogLink(ctx, host, EtcdContainerName, ETCDRole, alpineImage, prsMap); err != nil {
return err