diff --git a/bitnami/mongodb/CHANGELOG.md b/bitnami/mongodb/CHANGELOG.md index 8d5e381ea2aac2..f75872c5df2415 100644 --- a/bitnami/mongodb/CHANGELOG.md +++ b/bitnami/mongodb/CHANGELOG.md @@ -1,8 +1,13 @@ # Changelog -## 16.0.1 (2024-10-08) +## 16.0.2 (2024-10-09) -* [bitnami/mongodb] Release 16.0.1 ([#29830](https://github.com/bitnami/charts/pull/29830)) +* [bitnami/mongodb] Fixed awk script to extract in order to be more st… ([#29824](https://github.com/bitnami/charts/pull/29824)) + +## 16.0.1 (2024-10-08) + +* [bitnami/mongodb] Release 16.0.1 (#29830) ([6360c47](https://github.com/bitnami/charts/commit/6360c478136e8c0d58b7bb50e7f507308afc25f6)), closes [#29830](https://github.com/bitnami/charts/issues/29830) +* [bitnami/mongodb] Update README (#29812) ([6f8a1bf](https://github.com/bitnami/charts/commit/6f8a1bf241a0032a3e44a2ea47f9574f6786d436)), closes [#29812](https://github.com/bitnami/charts/issues/29812) ## 16.0.0 (2024-10-07) diff --git a/bitnami/mongodb/Chart.yaml b/bitnami/mongodb/Chart.yaml index cf99e686e2d485..954e2ca76abc92 100644 --- a/bitnami/mongodb/Chart.yaml +++ b/bitnami/mongodb/Chart.yaml @@ -39,4 +39,4 @@ maintainers: name: mongodb sources: - https://github.com/bitnami/charts/tree/main/bitnami/mongodb -version: 16.0.1 +version: 16.0.2 diff --git a/bitnami/mongodb/templates/replicaset/scripts-configmap.yaml b/bitnami/mongodb/templates/replicaset/scripts-configmap.yaml index e5ce87bfa1ace2..ec70ecbe8bef8f 100644 --- a/bitnami/mongodb/templates/replicaset/scripts-configmap.yaml +++ b/bitnami/mongodb/templates/replicaset/scripts-configmap.yaml @@ -121,7 +121,7 @@ data: {{- if .Values.externalAccess.externalMaster.enabled }} current_primary={{ printf "%s:%d" (.Values.externalAccess.externalMaster.host) ( int .Values.externalAccess.externalMaster.port) }} {{- else }} - current_primary=$(mongosh admin --host "{{ join "," $mongoList }}" {{- if .Values.auth.enabled }} --authenticationDatabase admin -u $MONGODB_ROOT_USER -p $MONGODB_ROOT_PASSWORD{{- end }}{{- if .Values.tls.enabled}} --tls {{ if .Values.tls.mTLS.enabled }}--tlsCertificateKeyFile=/certs/mongodb.pem {{ end }}--tlsCAFile=/certs/mongodb-ca-cert{{- end }} --eval 'db.runCommand("ismaster")' | awk -F\' '/primary/ {print $2}') + current_primary=$(mongosh admin --host "{{ join "," $mongoList }}" {{- if .Values.auth.enabled }} --authenticationDatabase admin -u $MONGODB_ROOT_USER -p $MONGODB_ROOT_PASSWORD{{- end }}{{- if .Values.tls.enabled}} --tls {{ if .Values.tls.mTLS.enabled }}--tlsCertificateKeyFile=/certs/mongodb.pem {{ end }}--tlsCAFile=/certs/mongodb-ca-cert{{- end }} --eval 'db.runCommand("ismaster")' | awk -F\' '/primary:/ {print $2}') {{- end }} if ! is_empty_value "$current_primary"; then info "Detected existing primary: ${current_primary}"