mirror of
https://github.com/helm/charts.git
synced 2026-08-23 06:17:18 +00:00
in retry_until only read the last mongo client line (#18630)
Signed-off-by: Kai Timmer <kai@staffbase.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
20cc1a3d69
commit
17e7dcbb5b
@@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
name: mongodb-replicaset
|
||||
home: https://github.com/mongodb/mongo
|
||||
version: 3.10.1
|
||||
version: 3.10.2
|
||||
appVersion: 3.6
|
||||
description: NoSQL document-oriented database that stores JSON-like documents with
|
||||
dynamic schemas, simplifying the integration of data in content-driven applications.
|
||||
|
||||
@@ -51,7 +51,7 @@ retry_until() {
|
||||
creds=()
|
||||
fi
|
||||
|
||||
until [[ $(mongo admin --host "${host}" "${creds[@]}" "${ssl_args[@]}" --quiet --eval "${command}") == "${expected}" ]]; do
|
||||
until [[ $(mongo admin --host "${host}" "${creds[@]}" "${ssl_args[@]}" --quiet --eval "${command}" | tail -n1) == "${expected}" ]]; do
|
||||
sleep 1
|
||||
|
||||
if (! ps "${pid}" &>/dev/null); then
|
||||
|
||||
Reference in New Issue
Block a user