From 6e4d2a6ebbf7006a2f3c91c264a0e3b5eebe6d83 Mon Sep 17 00:00:00 2001 From: Khoi Pham Date: Wed, 25 Dec 2024 16:11:01 +0700 Subject: [PATCH] [bitnami/etcd] Use etcdctl endpoint status to check whether cluster is new Signed-off-by: Khoi Pham --- .../etcd/3.5/debian-12/rootfs/opt/bitnami/scripts/libetcd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/etcd/3.5/debian-12/rootfs/opt/bitnami/scripts/libetcd.sh b/bitnami/etcd/3.5/debian-12/rootfs/opt/bitnami/scripts/libetcd.sh index e1a850cd39c6f..038d1b235c940 100644 --- a/bitnami/etcd/3.5/debian-12/rootfs/opt/bitnami/scripts/libetcd.sh +++ b/bitnami/etcd/3.5/debian-12/rootfs/opt/bitnami/scripts/libetcd.sh @@ -355,7 +355,7 @@ is_new_etcd_cluster() { local -a extra_flags read -r -a extra_flags <<<"$(etcdctl_auth_flags)" is_boolean_yes "$ETCD_ON_K8S" && extra_flags+=("--endpoints=$(etcdctl_get_endpoints)") - if ! etcdctl member list ${extra_flags[@]}; then + if ! etcdctl endpoint status --cluster ${extra_flags[@]}; then return 0 else return 1