diff --git a/stable/mongodb-replicaset/Chart.yaml b/stable/mongodb-replicaset/Chart.yaml index 8bae7b0576..515eb483a0 100644 --- a/stable/mongodb-replicaset/Chart.yaml +++ b/stable/mongodb-replicaset/Chart.yaml @@ -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. diff --git a/stable/mongodb-replicaset/README.md b/stable/mongodb-replicaset/README.md index 1429a7f24b..bf52e3b115 100644 --- a/stable/mongodb-replicaset/README.md +++ b/stable/mongodb-replicaset/README.md @@ -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 | `` | diff --git a/stable/mongodb-replicaset/templates/mongodb-admin-secret.yaml b/stable/mongodb-replicaset/templates/mongodb-admin-secret.yaml index c1f1e73d34..a5dcbe9490 100644 --- a/stable/mongodb-replicaset/templates/mongodb-admin-secret.yaml +++ b/stable/mongodb-replicaset/templates/mongodb-admin-secret.yaml @@ -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" . }} diff --git a/stable/mongodb-replicaset/templates/mongodb-keyfile-secret.yaml b/stable/mongodb-replicaset/templates/mongodb-keyfile-secret.yaml index 4a4017e98d..f6a8f7b3a2 100644 --- a/stable/mongodb-replicaset/templates/mongodb-keyfile-secret.yaml +++ b/stable/mongodb-replicaset/templates/mongodb-keyfile-secret.yaml @@ -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" . }} diff --git a/stable/mongodb-replicaset/templates/mongodb-metrics-secret.yaml b/stable/mongodb-replicaset/templates/mongodb-metrics-secret.yaml index 24c3524db4..0a4cfecc96 100644 --- a/stable/mongodb-replicaset/templates/mongodb-metrics-secret.yaml +++ b/stable/mongodb-replicaset/templates/mongodb-metrics-secret.yaml @@ -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" . }} diff --git a/stable/mongodb-replicaset/values.yaml b/stable/mongodb-replicaset/values.yaml index 818fc6eb00..b485abc295 100644 --- a/stable/mongodb-replicaset/values.yaml +++ b/stable/mongodb-replicaset/values.yaml @@ -147,6 +147,9 @@ persistentVolume: size: 10Gi annotations: {} +# Annotations to be added to the secrets +secretAnnotations: {} + # Annotations to be added to the service serviceAnnotations: {}