etcd-backup-restore
etcd-backup-restore copied to clipboard
Adds and fixes small things
What this PR does / why we need it:
- This commit adds a etcd-config.yaml file. It will be useful in running single member etcd and backup-restore locally for testing purposes. Just have to export ENV:
ETCD_CONF=example/00-etcd-config.yaml
- This commit set the HTTP status to
StatusServiceUnavailable
when backup-restore is inStateUnknown
. - This commit set the HTTP status to
StatusOK
when backup-restore is inStateFollower
orStateLeader
. - This commit removes the wrong snapshot compression time calculation as compression is done in this go routine. so it was more or less calculating pipe creation time. More info: https://pkg.go.dev/io#Pipe
- This commit adds small fixes.
Which issue(s) this PR fixes: Fixes #
Special notes for your reviewer:
Release note:
set the HTTP status to `StatusServiceUnavailable` when backup-restore is in `StateUnknown`.
set the HTTP status to `StatusOK` when backup-restore is in `StateFollower` or `StateLeader`.
/cla
@ishan16696 I reached out successfully to the cla-assistant to recheck this pull request.
/ping @gardener/etcd-druid-maintainers
@gardener/etcd-druid-maintainers
Message
/ping @gardener/etcd-druid-maintainers
Do we need this PR?
@ishan16696 You need rebase this pull request with latest master branch. Please check.
closing this PR as PR becomes very old, I will open a separate PR(s) for necessary changes. /close