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:
committed by
Alena Prokharchyk
parent
696b61679c
commit
3480a020fc
@@ -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
|
||||
|
Reference in New Issue
Block a user