From 95522dd767bb9e2336dccb661ab84f2e199be02f Mon Sep 17 00:00:00 2001 From: Andrew Plummer Date: Mon, 20 Aug 2018 15:09:46 +0100 Subject: [PATCH] [stable/mysql] Add podAnnotations (#6863) --- stable/mysql/Chart.yaml | 2 +- stable/mysql/README.md | 1 + stable/mysql/templates/deployment.yaml | 4 ++++ stable/mysql/values.yaml | 3 +++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/stable/mysql/Chart.yaml b/stable/mysql/Chart.yaml index 74cf596742..3dcc74d151 100755 --- a/stable/mysql/Chart.yaml +++ b/stable/mysql/Chart.yaml @@ -1,5 +1,5 @@ name: mysql -version: 0.9.2 +version: 0.9.3 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 9693cc22d2..d86f8084fa 100755 --- a/stable/mysql/README.md +++ b/stable/mysql/README.md @@ -94,6 +94,7 @@ The following table lists the configurable parameters of the MySQL chart and the | `imagePullSecrets` | Name of Secret resource containing private registry credentials | `nil` | | `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 | `{}` | 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 8b6c8c3069..75c9f9eb24 100644 --- a/stable/mysql/templates/deployment.yaml +++ b/stable/mysql/templates/deployment.yaml @@ -12,6 +12,10 @@ spec: metadata: labels: app: {{ template "mysql.fullname" . }} +{{- with .Values.podAnnotations }} + annotations: +{{ toYaml . | indent 8 }} +{{- end }} spec: {{- if .Values.imagePullSecrets }} imagePullSecrets: diff --git a/stable/mysql/values.yaml b/stable/mysql/values.yaml index 7f67f877e8..d0b5746a41 100644 --- a/stable/mysql/values.yaml +++ b/stable/mysql/values.yaml @@ -154,3 +154,6 @@ ssl: ## Default: nil (mysql will use image's default timezone, normally UTC) ## Example: 'Australia/Sydney' # timezone: + +# To be added to the database server pod(s) +podAnnotations: {}