From 50df39d537daae4b596fa7566dc749806d9e8661 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 --- .../3.5/debian-11/rootfs/opt/bitnami/scripts/libetcd.sh | 7 +++++++ 1 file changed, 7 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..da6008975dd57 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,13 @@ 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 we're configured with ETCD_DISABLE_PRESTOP - we aren't + # dynamically adjusting membership. We'll return here in + # this case and let etcd start and join the statically configured + # cluster. + # + return 0 fi member_id="$(get_member_id)" if ! is_healthy_etcd_cluster; then