Skip to content

Commit

Permalink
Add memcached emptyDir.medium configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Niklas Hanft <[email protected]>
  • Loading branch information
nhh committed Sep 7, 2024
1 parent 06c98e8 commit 2549b88
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bitnami/memcached/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ maintainers:
name: memcached
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/memcached
version: 7.4.14
version: 7.4.15
1 change: 1 addition & 0 deletions bitnami/memcached/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ If you encounter errors when working with persistent volumes, refer to our [trou
| `terminationGracePeriodSeconds` | In seconds, time the given to the memcached pod needs to terminate gracefully | `""` |
| `updateStrategy.type` | Memcached statefulset strategy type | `RollingUpdate` |
| `updateStrategy.rollingUpdate` | Memcached statefulset rolling update configuration parameters | `{}` |
| `emptyDir.medium` | Override emptyDir Volume type, defaults to emptyDir: {} | `""` |
| `extraVolumes` | Optionally specify extra list of additional volumes for the Memcached pod(s) | `[]` |
| `extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the Memcached container(s) | `[]` |
| `sidecars` | Add additional sidecar containers to the Memcached pod(s) | `[]` |
Expand Down
5 changes: 5 additions & 0 deletions bitnami/memcached/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,12 @@ spec:
{{- end }}
volumes:
- name: empty-dir
{{- if eq .Values.emptyDir.medium "Memory" }}
emptyDir:
medium: "Memory"
{{- else }}
emptyDir: {}
{{- end }}
{{- if .Values.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions bitnami/memcached/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,10 @@ terminationGracePeriodSeconds: ""
updateStrategy:
type: RollingUpdate
rollingUpdate: {}
## @param emptyDir.medium Override emptyDir Volume type, defaults to emptyDir: {}
## Possible values: "Memory", ""
emptyDir:
medium: ""
## @param extraVolumes Optionally specify extra list of additional volumes for the Memcached pod(s)
## Example Use Case: mount certificates to enable TLS
## e.g:
Expand Down

0 comments on commit 2549b88

Please sign in to comment.