Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/memcached] Add updateStrategy configuration option #16358

Merged
Merged
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 stable/memcached/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: memcached
version: 2.9.0
version: 2.10.0
appVersion: 1.5.12
description: Free & open source, high-performance, distributed memory object caching
system.
Expand Down
1 change: 1 addition & 0 deletions stable/memcached/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ The following table lists the configurable parameters of the Memcached chart and
| `securityContext.enabled` | Enable security context | `true` |
| `securityContext.fsGroup` | Group ID for the container | `1001` |
| `securityContext.runAsUser`| User ID for the container | `1001` |
| `updateStrategy.type` | Update strategy for the StatefulSet/Deployment | `RollingUpdate` |

RemingtonReackhof marked this conversation as resolved.
Show resolved Hide resolved
The above parameters map to `memcached` params. For more information please refer to the [Memcached documentation](https://github.com/memcached/memcached/wiki/ConfiguringServer).

Expand Down
5 changes: 5 additions & 0 deletions stable/memcached/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,8 @@ spec:
affinity:
{{ toYaml . | trim | indent 8}}
{{- end }}
updateStrategy:
type: {{ .Values.updateStrategy.type }}
{{- if (eq "Recreate" .Values.updateStrategy.type) }}
rollingUpdate: null
{{- end }}
6 changes: 6 additions & 0 deletions stable/memcached/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ serviceAnnotations: {}
## StatefulSet or Deployment
kind: StatefulSet

## Update Strategy for the StatefulSet or Deployment
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#updating-a-deployment
updateStrategy:
type: RollingUpdate

## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
Expand Down