From e4418cc67ef4b2ceb92f21eafafe953cd659e4d1 Mon Sep 17 00:00:00 2001 From: Brad Klein Date: Thu, 22 Jun 2023 11:51:05 -0600 Subject: [PATCH] Allow cluster to start after power off when ETCD_DISABLE_PRESTOP is set Signed-off-by: Brad Klein --- .../etcd/3.5/debian-11/rootfs/opt/bitnami/scripts/libetcd.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bitnami/etcd/3.5/debian-11/rootfs/opt/bitnami/scripts/libetcd.sh b/bitnami/etcd/3.5/debian-11/rootfs/opt/bitnami/scripts/libetcd.sh index aaa9aabd6d9b5..efa096cfcc4b6 100644 --- a/bitnami/etcd/3.5/debian-11/rootfs/opt/bitnami/scripts/libetcd.sh +++ b/bitnami/etcd/3.5/debian-11/rootfs/opt/bitnami/scripts/libetcd.sh @@ -664,6 +664,11 @@ etcd_initialize() { if is_boolean_yes "$ETCD_DISABLE_PRESTOP"; then info "The member will try to join the cluster by it's own" export ETCD_INITIAL_CLUSTER_STATE=existing + # + # If ETCD_DISABLE_PRESTOP is set, we won't dynamically adjust membership. In this case + # we'll return and allow etcd to start and join the statically configured cluster. + # + return 0 fi member_id="$(get_member_id)" if ! is_healthy_etcd_cluster; then