Skip to content

Commit

Permalink
[stable/mongodb] Allow MongoDB to be configured with directoryPerDB o…
Browse files Browse the repository at this point in the history
…ption (helm#11830)

Signed-off-by: juan131 <[email protected]>
  • Loading branch information
juan131 authored and k8s-ci-robot committed Mar 1, 2019
1 parent f7211a9 commit 61dd396
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/mongodb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: mongodb
version: 5.6.2
version: 5.7.0
appVersion: 4.0.6
description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications.
keywords:
Expand Down
1 change: 1 addition & 0 deletions stable/mongodb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ The following table lists the configurable parameters of the MongoDB chart and t
| `mongodbPassword` | MongoDB custom user password | `random alphanumeric string (10)` |
| `mongodbDatabase` | Database to create | `nil` |
| `mongodbEnableIPv6` | Switch to enable/disable IPv6 on MongoDB | `true` |
| `mongodbDirectoryPerDB` | Switch to enable/disable DirectoryPerDB on MongoDB | `false` |
| `mongodbSystemLogVerbosity` | MongoDB systen log verbosity level | `0` |
| `mongodbDisableSystemLog` | Whether to disable MongoDB system log or not | `false` |
| `mongodbExtraFlags` | MongoDB additional command line flags | [] |
Expand Down
6 changes: 6 additions & 0 deletions stable/mongodb/templates/deployment-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ spec:
{{- else }}
value: "no"
{{- end }}
- name: MONGODB_ENABLE_DIRECTORY_PER_DB
{{- if .Values.mongodbDirectoryPerDB }}
value: "yes"
{{- else }}
value: "no"
{{- end }}
{{- if .Values.mongodbExtraFlags }}
- name: MONGODB_EXTRA_FLAGS
value: {{ .Values.mongodbExtraFlags | join " " }}
Expand Down
6 changes: 6 additions & 0 deletions stable/mongodb/templates/statefulset-arbiter-rs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ spec:
{{- else }}
value: "no"
{{- end }}
- name: MONGODB_ENABLE_DIRECTORY_PER_DB
{{- if .Values.mongodbDirectoryPerDB }}
value: "yes"
{{- else }}
value: "no"
{{- end }}
{{- if .Values.mongodbExtraFlags }}
- name: MONGODB_EXTRA_FLAGS
value: {{ .Values.mongodbExtraFlags | join " " }}
Expand Down
6 changes: 6 additions & 0 deletions stable/mongodb/templates/statefulset-primary-rs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ spec:
{{- else }}
value: "no"
{{- end }}
- name: MONGODB_ENABLE_DIRECTORY_PER_DB
{{- if .Values.mongodbDirectoryPerDB }}
value: "yes"
{{- else }}
value: "no"
{{- end }}
{{- if .Values.mongodbExtraFlags }}
- name: MONGODB_EXTRA_FLAGS
value: {{ .Values.mongodbExtraFlags | join " " }}
Expand Down
6 changes: 6 additions & 0 deletions stable/mongodb/templates/statefulset-secondary-rs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ spec:
{{- else }}
value: "no"
{{- end }}
- name: MONGODB_ENABLE_DIRECTORY_PER_DB
{{- if .Values.mongodbDirectoryPerDB }}
value: "yes"
{{- else }}
value: "no"
{{- end }}
{{- if .Values.mongodbExtraFlags }}
- name: MONGODB_EXTRA_FLAGS
value: {{ .Values.mongodbExtraFlags | join " " }}
Expand Down
5 changes: 5 additions & 0 deletions stable/mongodb/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ usePassword: true
##
mongodbEnableIPv6: true

## Whether enable/disable DirectoryPerDB on MongoDB
## ref: https://github.com/bitnami/bitnami-docker-mongodb/blob/master/README.md#enabling/disabling-directoryperdb
##
mongodbDirectoryPerDB: false

## MongoDB System Log configuration
## ref: https://github.com/bitnami/bitnami-docker-mongodb#configuring-system-log-verbosity-level
##
Expand Down
6 changes: 5 additions & 1 deletion stable/mongodb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,16 @@ usePassword: true
# mongodbPassword: password
# mongodbDatabase: database


## Whether enable/disable IPv6 on MongoDB
## ref: https://github.com/bitnami/bitnami-docker-mongodb/blob/master/README.md#enabling/disabling-ipv6
##
mongodbEnableIPv6: true

## Whether enable/disable DirectoryPerDB on MongoDB
## ref: https://github.com/bitnami/bitnami-docker-mongodb/blob/master/README.md#enabling/disabling-directoryperdb
##
mongodbDirectoryPerDB: false

## MongoDB System Log configuration
## ref: https://github.com/bitnami/bitnami-docker-mongodb#configuring-system-log-verbosity-level
##
Expand Down

0 comments on commit 61dd396

Please sign in to comment.