-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't allow bootstrap if etcd data directory is not empty
If etcd data directory is not empty, it means that `etcd` is already running (or etcd has run), so removing data directory might lead to data loss. Under normal circumstances `etcd` is not started before either node joins existing etcd cluster or it gets bootstrapped. Most importantly, with this change it's not possible to nuke etcd member by issuing `talosctl bootstrap` on already running Talos node. Plus nag user about doing bootstrap if the node is waiting to join. Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
- Loading branch information
Showing
3 changed files
with
16 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters