gardener / etcd-backup-restore

Collection of components to backup and restore the etcd of a Kubernetes cluster.
Apache License 2.0
289 stars 100 forks source link

Retry to take full snapshot if prev full snapshot fails due to some reason. #765

Closed ishan16696 closed 2 months ago

ishan16696 commented 2 months ago

What this PR does / why we need it: This PR will make backup-restore to retry to take full-snapshot if previous full snapshot fails due to any reason.

Which issue(s) this PR fixes: Fixes #

Special notes for your reviewer:

Release note:

Retry to take full snapshot if the previous full snapshot operation fails.
ishan16696 commented 2 months ago

One thing which I have just noticed: I'm changing the default value of PrevFullSnapshotSucceeded to true as this will prevent taking a full snapshot on every restart of a backup-restore container.