From 9968e322f4addbbedcf43b2eeeea3d45123766dd Mon Sep 17 00:00:00 2001 From: Pam Assogba Date: Wed, 18 Sep 2019 17:07:00 -0400 Subject: [PATCH] [stable/memcached] Allow Memcached priorityClassName usage (#17236) * Added priorityClassName parameter to Statefulset resource and values.yaml Signed-off-by: pam- * Bumping version Signed-off-by: pam- * Updated README Signed-off-by: pam- * Fixing typo Signed-off-by: pam- * yaml typo Signed-off-by: pam- --- stable/memcached/Chart.yaml | 2 +- stable/memcached/README.md | 1 + stable/memcached/templates/statefulset.yaml | 3 +++ stable/memcached/values.yaml | 3 +++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/stable/memcached/Chart.yaml b/stable/memcached/Chart.yaml index 7c88d11134..70694e63cf 100644 --- a/stable/memcached/Chart.yaml +++ b/stable/memcached/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: memcached -version: 2.10.0 +version: 2.10.1 appVersion: 1.5.12 description: Free & open source, high-performance, distributed memory object caching system. diff --git a/stable/memcached/README.md b/stable/memcached/README.md index 056e1a8d8d..72adb41463 100644 --- a/stable/memcached/README.md +++ b/stable/memcached/README.md @@ -63,6 +63,7 @@ The following table lists the configurable parameters of the Memcached chart and | `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` | +| `priorityClassName ` | Specifies the pod's priority class name | Un-set | The above parameters map to `memcached` params. For more information please refer to the [Memcached documentation](https://github.com/memcached/memcached/wiki/ConfiguringServer). diff --git a/stable/memcached/templates/statefulset.yaml b/stable/memcached/templates/statefulset.yaml index bd638cfc71..e5935d7065 100644 --- a/stable/memcached/templates/statefulset.yaml +++ b/stable/memcached/templates/statefulset.yaml @@ -12,6 +12,9 @@ spec: serviceName: {{ template "memcached.fullname" . }} {{- end }} replicas: {{ .Values.replicaCount }} + {{- if .Values.priorityClassName -}} + priorityClassName: "{{ .Values.priorityClassName }}" + {{- end }} template: metadata: labels: diff --git a/stable/memcached/values.yaml b/stable/memcached/values.yaml index 98f1376b4c..d775164d78 100644 --- a/stable/memcached/values.yaml +++ b/stable/memcached/values.yaml @@ -103,3 +103,6 @@ extraVolumes: | # To be added to the server pod(s) podAnnotations: {} + +## Set pod priority class +# priorityClassName: ""