Skip to content

Commit

Permalink
Add the ability to specify pod labels (helm#11203)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew DeVenny <[email protected]>
  • Loading branch information
matthewdevenny authored and k8s-ci-robot committed Feb 7, 2019
1 parent ec89a0c commit 1c7af39
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/mysql/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mysql
version: 0.14.0
version: 0.15.0
appVersion: 5.7.14
description: Fast, reliable, scalable, and easy to use open-source relational database
system.
Expand Down
1 change: 1 addition & 0 deletions stable/mysql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,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 | `{}` |
| `podLabels` | Map of labels 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/).
Expand Down
3 changes: 3 additions & 0 deletions stable/mysql/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ spec:
metadata:
labels:
app: {{ template "mysql.fullname" . }}
{{- with .Values.podLabels }}
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{ toYaml . | indent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions stable/mysql/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,7 @@ ssl:
# To be added to the database server pod(s)
podAnnotations: {}

podLabels: {}

## Set pod priorityClassName
# priorityClassName: {}

0 comments on commit 1c7af39

Please sign in to comment.