Skip to content

Commit

Permalink
[bitnami/memcached] Add optional emptyDir medium configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Niklas Hanft <niklas.hanft@gmail.com>
  • Loading branch information
nhh committed Sep 23, 2024
1 parent 630e4cb commit 83db3d9
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
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.16
version: 7.5.0
3 changes: 2 additions & 1 deletion 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, possible values: "" or "Memory" | `""`
| `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 Expand Up @@ -454,4 +455,4 @@ Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
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
7 changes: 6 additions & 1 deletion bitnami/memcached/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ spec:
subPath: app-conf-dir
- name: empty-dir
mountPath: /tmp
subPath: tmp-dir
subPath: tmp-dir
{{- if .Values.extraVolumeMounts }}
{{- include "common.tplvalues.render" ( dict "value" .Values.extraVolumeMounts "context" $ ) | nindent 12 }}
{{- end }}
Expand Down Expand Up @@ -263,7 +263,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 83db3d9

Please sign in to comment.