[stable/mongodb-replicaset] feature: Add support for secret annotations when auth is enabled (#21704)

* Add support for secret annotations when auth is enabled

Signed-off-by: Oluwaseun Obajobi <oba@obajobi.com>

* updated to the PR to recommended changes

Signed-off-by: Oluwaseun Obajobi <oba@obajobi.com>
This commit is contained in:
Oluwaseun Obajobi
2020-04-04 14:09:45 -07:00
committed by GitHub
parent a1225bde0e
commit 82cd67703a
6 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: mongodb-replicaset
home: https://github.com/mongodb/mongo
version: 3.14.1
version: 3.15.0
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.
+1
View File
@@ -91,6 +91,7 @@ The following table lists the configurable parameters of the mongodb chart and t
| `auth.metricsPassword` | MongoDB clusterMonitor password | `` |
| `auth.existingMetricsSecret` | If set, and existing secret with this name is used for the metrics user | `` |
| `auth.existingAdminSecret` | If set, and existing secret with this name is used for the admin user | `` |
| `secretAnnotations` | Annotations to be added to the secret if auth is enabled | `{}` |
| `serviceAnnotations` | Annotations to be added to the service | `{}` |
| `configmap` | Content of the MongoDB config file | `` |
| `initMongodStandalone` | If set, initContainer executes script in standalone mode | `` |
@@ -9,6 +9,10 @@ metadata:
release: {{ .Release.Name }}
{{- if .Values.extraLabels }}
{{ toYaml .Values.extraLabels | indent 4 }}
{{- end }}
{{- if .Values.secretAnnotations }}
annotations:
{{ toYaml .Values.secretAnnotations | indent 4 }}
{{- end }}
name: {{ template "mongodb-replicaset.adminSecret" . }}
namespace: {{ template "mongodb-replicaset.namespace" . }}
@@ -9,6 +9,10 @@ metadata:
release: {{ .Release.Name }}
{{- if .Values.extraLabels }}
{{ toYaml .Values.extraLabels | indent 4 }}
{{- end }}
{{- if .Values.secretAnnotations }}
annotations:
{{ toYaml .Values.secretAnnotations | indent 4 }}
{{- end }}
name: {{ template "mongodb-replicaset.keySecret" . }}
namespace: {{ template "mongodb-replicaset.namespace" . }}
@@ -9,6 +9,10 @@ metadata:
release: {{ .Release.Name }}
{{- if .Values.extraLabels }}
{{ toYaml .Values.extraLabels | indent 4 }}
{{- end }}
{{- if .Values.secretAnnotations }}
annotations:
{{ toYaml .Values.secretAnnotations | indent 4 }}
{{- end }}
name: {{ template "mongodb-replicaset.metricsSecret" . }}
namespace: {{ template "mongodb-replicaset.namespace" . }}
+3
View File
@@ -147,6 +147,9 @@ persistentVolume:
size: 10Gi
annotations: {}
# Annotations to be added to the secrets
secretAnnotations: {}
# Annotations to be added to the service
serviceAnnotations: {}