mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
@@ -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.
|
||||
|
||||
@@ -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" . }}
|
||||
|
||||
@@ -147,6 +147,9 @@ persistentVolume:
|
||||
size: 10Gi
|
||||
annotations: {}
|
||||
|
||||
# Annotations to be added to the secrets
|
||||
secretAnnotations: {}
|
||||
|
||||
# Annotations to be added to the service
|
||||
serviceAnnotations: {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user