Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/mongodb] add emptyDir sizeLimit #28771

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bitnami/mongodb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ maintainers:
name: mongodb
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/mongodb
version: 15.6.18
version: 15.7.0
1 change: 1 addition & 0 deletions bitnami/mongodb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ If you encounter errors when working with persistent volumes, refer to our [trou

| Name | Description | Value |
| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ |
| `global.emptyDirSizeLimit` | Global limit for the tmp dir empty-dir mounts | `"1Gi"`|
| `global.imageRegistry` | Global Docker image registry | `""` |
| `global.imagePullSecrets` | Global Docker registry secret names as an array | `[]` |
| `global.defaultStorageClass` | Global default StorageClass for Persistent Volume(s) | `""` |
Expand Down
9 changes: 6 additions & 3 deletions bitnami/mongodb/templates/replicaset/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,8 @@ spec:
{{- end }}
volumes:
- name: empty-dir
emptyDir: {}
emptyDir:
sizeLimit: {{ .Values.global.emptyDirSizeLimit }}
- name: common-scripts
configMap:
name: {{ printf "%s-common-scripts" (include "mongodb.fullname" .) }}
Expand All @@ -484,7 +485,8 @@ spec:
{{- end }}
{{- if and .Values.externalAccess.enabled .Values.externalAccess.autoDiscovery.enabled (eq .Values.externalAccess.service.type "LoadBalancer") }}
- name: shared
emptyDir: {}
emptyDir:
sizeLimit: {{ .Values.global.emptyDirSizeLimit }}
{{- end }}
- name: scripts
configMap:
Expand All @@ -495,7 +497,8 @@ spec:
{{- end }}
{{- if .Values.tls.enabled }}
- name: certs
emptyDir: {}
emptyDir:
sizeLimit: {{ .Values.global.emptyDirSizeLimit }}
{{- if (include "mongodb.autoGenerateCerts" .) }}
- name: certs-volume
secret:
Expand Down
6 changes: 4 additions & 2 deletions bitnami/mongodb/templates/standalone/dep-sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ spec:
{{- end }}
volumes:
- name: empty-dir
emptyDir: {}
emptyDir:
sizeLimit: {{ .Values.global.emptyDirSizeLimit }}
- name: common-scripts
configMap:
name: {{ printf "%s-common-scripts" (include "mongodb.fullname" .) }}
Expand All @@ -432,7 +433,8 @@ spec:
{{- end }}
{{- if .Values.tls.enabled }}
- name: certs
emptyDir: {}
emptyDir:
sizeLimit: {{ .Values.global.emptyDirSizeLimit }}
{{- if (include "mongodb.autoGenerateCerts" .) }}
- name: certs-volume
secret:
Expand Down
4 changes: 4 additions & 0 deletions bitnami/mongodb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
## @param global.namespaceOverride Override the namespace for resource deployed by the chart, but can itself be overridden by the local namespaceOverride
##
global:
##
## Global limit for the tmp dir empty-dir mounts
##
emptyDirSizeLimit: 1Gi
imageRegistry: ""
## E.g.
## imagePullSecrets:
Expand Down
Loading