Skip to content

Commit

Permalink
[bitnami/etcd] Use etcdctl endpoint status to check whether cluster i…
Browse files Browse the repository at this point in the history
…s new

Signed-off-by: Khoi Pham <[email protected]>
  • Loading branch information
pckhoi committed Dec 25, 2024
1 parent a18d711 commit 6e4d2a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e4d2a6

Please sign in to comment.