mirror of
https://github.com/bitnami/charts.git
synced 2026-02-28 15:37:42 +08:00
[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:
committed by
GitHub
parent
60edc44fbf
commit
896208ea4f
@@ -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:
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user