From bcecde74ff9740da875270dbbbc8fc1bc20f8f7f Mon Sep 17 00:00:00 2001 From: xtianus79 Date: Wed, 2 Nov 2022 10:34:43 -0400 Subject: [PATCH] [bitnami/mongodb] Update common-scripts-cm.yaml (#13131) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update common-scripts-cm.yaml grep should produce an output from a true statement Signed-off-by: xtianus79 * Update Chart.yaml updated chart.yaml Signed-off-by: xtianus79 Signed-off-by: xtianus79 Signed-off-by: Carlos Rodríguez Hernández Co-authored-by: Carlos Rodríguez Hernández --- bitnami/mongodb/Chart.yaml | 2 +- bitnami/mongodb/templates/common-scripts-cm.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bitnami/mongodb/Chart.yaml b/bitnami/mongodb/Chart.yaml index 3296316caf..70a48ec2d7 100644 --- a/bitnami/mongodb/Chart.yaml +++ b/bitnami/mongodb/Chart.yaml @@ -26,4 +26,4 @@ name: mongodb sources: - https://github.com/bitnami/containers/tree/main/bitnami/mongodb - https://mongodb.org -version: 13.3.1 +version: 13.4.0 diff --git a/bitnami/mongodb/templates/common-scripts-cm.yaml b/bitnami/mongodb/templates/common-scripts-cm.yaml index e7c8254935..280b8175ff 100644 --- a/bitnami/mongodb/templates/common-scripts-cm.yaml +++ b/bitnami/mongodb/templates/common-scripts-cm.yaml @@ -18,7 +18,7 @@ data: {{- if .Values.tls.enabled }} TLS_OPTIONS='--tls --tlsCertificateKeyFile=/certs/mongodb.pem --tlsCAFile=/certs/mongodb-ca-cert' {{- end }} - mongosh $TLS_OPTIONS --port $MONGODB_PORT_NUMBER --eval 'db.hello().isWritablePrimary || db.hello().secondary' | grep -q 'true$' + mongosh $TLS_OPTIONS --port $MONGODB_PORT_NUMBER --eval 'db.hello().isWritablePrimary || db.hello().secondary' | grep 'true' readiness-probe.sh: | #!/bin/bash {{- if .Values.tls.enabled }} @@ -31,9 +31,9 @@ data: VERSION_MINOR="$(get_sematic_version "$VERSION" 2)" VERSION_PATCH="$(get_sematic_version "$VERSION" 3)" if [[ ( "$VERSION_MAJOR" -ge 5 ) || ( "$VERSION_MAJOR" -ge 4 && "$VERSION_MINOR" -ge 4 && "$VERSION_PATCH" -ge 2 ) ]]; then - mongosh $TLS_OPTIONS --port $MONGODB_PORT_NUMBER --eval 'db.hello().isWritablePrimary || db.hello().secondary' | grep -q 'true$' + mongosh $TLS_OPTIONS --port $MONGODB_PORT_NUMBER --eval 'db.hello().isWritablePrimary || db.hello().secondary' | grep 'true' else - mongosh $TLS_OPTIONS --port $MONGODB_PORT_NUMBER --eval 'db.isMaster().ismaster || db.isMaster().secondary' | grep -q 'true$' + mongosh $TLS_OPTIONS --port $MONGODB_PORT_NUMBER --eval 'db.isMaster().ismaster || db.isMaster().secondary' | grep 'true' fi ping-mongodb.sh: | #!/bin/bash