From 298bb7c45d40518768cef4bade7b91d53872bde2 Mon Sep 17 00:00:00 2001 From: Renat Galiev Date: Tue, 25 Dec 2018 13:57:23 +0300 Subject: [PATCH] [stable/mysql] Support defining PriorityClass (#10240) Signed-off-by: Renat Galiev --- stable/mysql/Chart.yaml | 2 +- stable/mysql/README.md | 1 + stable/mysql/templates/deployment.yaml | 3 +++ stable/mysql/values.yaml | 3 +++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/stable/mysql/Chart.yaml b/stable/mysql/Chart.yaml index 2cd106b3cf..f4de1f18c0 100755 --- a/stable/mysql/Chart.yaml +++ b/stable/mysql/Chart.yaml @@ -1,5 +1,5 @@ name: mysql -version: 0.11.0 +version: 0.12.0 appVersion: 5.7.14 description: Fast, reliable, scalable, and easy to use open-source relational database system. diff --git a/stable/mysql/README.md b/stable/mysql/README.md index 5bba345e51..f1abaa2705 100755 --- a/stable/mysql/README.md +++ b/stable/mysql/README.md @@ -100,6 +100,7 @@ The following table lists the configurable parameters of the MySQL chart and the | `initializationFiles` | List of SQL files which are run after the container started | `nil` | | `timezone` | Container and mysqld timezone (TZ env) | `nil` (UTC depending on image) | | `podAnnotations` | Map of annotations to add to the pods | `{}` | +| `priorityClassName` | Set pod priorityClassName | `{}` | Some of the parameters above map to the env variables defined in the [MySQL DockerHub image](https://hub.docker.com/_/mysql/). diff --git a/stable/mysql/templates/deployment.yaml b/stable/mysql/templates/deployment.yaml index e07031a10c..e1320015c2 100644 --- a/stable/mysql/templates/deployment.yaml +++ b/stable/mysql/templates/deployment.yaml @@ -20,6 +20,9 @@ spec: {{- if .Values.imagePullSecrets }} imagePullSecrets: {{ toYaml .Values.imagePullSecrets | indent 8 }} + {{- end }} + {{- if .Values.priorityClassName }} + priorityClassName: "{{ .Values.priorityClassName }}" {{- end }} initContainers: - name: "remove-lost-found" diff --git a/stable/mysql/values.yaml b/stable/mysql/values.yaml index ed00b1f01c..a87de83822 100644 --- a/stable/mysql/values.yaml +++ b/stable/mysql/values.yaml @@ -166,3 +166,6 @@ ssl: # To be added to the database server pod(s) podAnnotations: {} + +## Set pod priorityClassName +# priorityClassName: {}