Skip to content

Commit

Permalink
add emptyDir sizeLimit
Browse files Browse the repository at this point in the history
Signed-off-by: André Bauer <andre.bauer@staffbase.com>
  • Loading branch information
monotek committed Aug 8, 2024
1 parent 9ca98f2 commit 737af76
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
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 registry | `"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
1 change: 1 addition & 0 deletions bitnami/mongodb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
## @param global.namespaceOverride Override the namespace for resource deployed by the chart, but can itself be overridden by the local namespaceOverride
##
global:
emptyDirSizeLimit: 1Gi
imageRegistry: ""
## E.g.
## imagePullSecrets:
Expand Down

0 comments on commit 737af76

Please sign in to comment.