[bitnami/mongodb-sharded] Fix metric collection when using a password file (#2800)

* mongodb-sharded: Fix mongodb_exporter metrics when using a password file

* mongodb-sharded: Bump chart version
This commit is contained in:
Konstantinos Natsakis
2020-06-15 21:03:33 +03:00
committed by GitHub
parent 60edc44fbf
commit 896208ea4f
5 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: mongodb-sharded
version: 1.4.2
version: 1.4.3
appVersion: 4.2.8
description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. Sharded topology.
keywords:

View File

@@ -236,7 +236,7 @@ spec:
- |-
#!/bin/sh
{{- if .Values.usePasswordFile }}
export MONGODB_ROOT_PASSWORD="$(< "${MONGODB_ROOT_PASSWORD_FILE}")"
export MONGODB_ROOT_PASSWORD="$(cat "${MONGODB_ROOT_PASSWORD_FILE}")"
{{- end }}
/bin/mongodb_exporter --mongodb.uri mongodb://root:`echo $MONGODB_ROOT_PASSWORD | sed -r "s/@/%40/g;s/:/%3A/g"`@localhost:{{ .Values.service.port }}/admin {{ .Values.metrics.extraArgs }}
{{- if .Values.usePasswordFile }}

View File

@@ -224,7 +224,7 @@ spec:
- |-
#!/bin/sh
{{- if .Values.usePasswordFile }}
export MONGODB_ROOT_PASSWORD="$(< "${MONGODB_ROOT_PASSWORD_FILE}")"
export MONGODB_ROOT_PASSWORD="$(cat "${MONGODB_ROOT_PASSWORD_FILE}")"
{{- end }}
/bin/mongodb_exporter --mongodb.uri mongodb://root:`echo $MONGODB_ROOT_PASSWORD | sed -r "s/@/%40/g;s/:/%3A/g"`@localhost:{{ .Values.service.port }}/admin {{ .Values.metrics.extraArgs }}
{{- if .Values.usePasswordFile }}

View File

@@ -211,7 +211,7 @@ spec:
- |-
#!/bin/sh
{{- if $.Values.usePasswordFile }}
export MONGODB_ROOT_PASSWORD="$(< "${MONGODB_ROOT_PASSWORD_FILE}")"
export MONGODB_ROOT_PASSWORD="$(cat "${MONGODB_ROOT_PASSWORD_FILE}")"
{{- end }}
/bin/mongodb_exporter --mongodb.uri mongodb://root:`echo $MONGODB_ROOT_PASSWORD | sed -r "s/@/%40/g;s/:/%3A/g"`@localhost:{{ $.Values.service.port }}/admin {{ $.Values.metrics.extraArgs }}
{{- if $.Values.usePasswordFile }}

View File

@@ -216,7 +216,7 @@ spec:
- |-
#!/bin/sh
{{- if $.Values.usePasswordFile }}
export MONGODB_ROOT_PASSWORD="$(< "${MONGODB_ROOT_PASSWORD_FILE}")"
export MONGODB_ROOT_PASSWORD="$(cat "${MONGODB_ROOT_PASSWORD_FILE}")"
{{- end }}
/bin/mongodb_exporter --mongodb.uri mongodb://root:`echo $MONGODB_ROOT_PASSWORD | sed -r "s/@/%40/g;s/:/%3A/g"`@localhost:{{ $.Values.service.port }}/admin {{ $.Values.metrics.extraArgs }}
{{- if $.Values.usePasswordFile }}