diff --git a/bitnami/etcd/3.4/debian-11/Dockerfile b/bitnami/etcd/3.4/debian-11/Dockerfile index 735de84506f0..83fb377e9c88 100644 --- a/bitnami/etcd/3.4/debian-11/Dockerfile +++ b/bitnami/etcd/3.4/debian-11/Dockerfile @@ -5,7 +5,7 @@ ARG TARGETARCH LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \ org.opencontainers.image.description="Application packaged by Bitnami" \ org.opencontainers.image.licenses="Apache-2.0" \ - org.opencontainers.image.ref.name="3.4.23-debian-11-r19" \ + org.opencontainers.image.ref.name="3.4.23-debian-11-r20" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/etcd" \ org.opencontainers.image.title="etcd" \ org.opencontainers.image.vendor="VMware, Inc." \ diff --git a/bitnami/etcd/3.4/debian-11/rootfs/opt/bitnami/scripts/libetcd.sh b/bitnami/etcd/3.4/debian-11/rootfs/opt/bitnami/scripts/libetcd.sh index 1c481f3ffd16..02ed5ab5b837 100644 --- a/bitnami/etcd/3.4/debian-11/rootfs/opt/bitnami/scripts/libetcd.sh +++ b/bitnami/etcd/3.4/debian-11/rootfs/opt/bitnami/scripts/libetcd.sh @@ -689,6 +689,9 @@ etcd_initialize() { extra_flags+=("--peer-urls=$ETCD_INITIAL_ADVERTISE_PEER_URLS") etcdctl member add "$ETCD_NAME" "${extra_flags[@]}" | grep "^ETCD_" >"$ETCD_NEW_MEMBERS_ENV_FILE" replace_in_file "$ETCD_NEW_MEMBERS_ENV_FILE" "^" "export " + # The value of ETCD_INITIAL_CLUSTER_STATE must be changed for it to be correctly added to the existing cluster + # https://etcd.io/docs/v3.3/op-guide/configuration/#--initial-cluster-state + export ETCD_INITIAL_CLUSTER_STATE=existing etcd_store_member_id elif ! is_empty_value "$member_id"; then info "Updating member in existing cluster"