Skip to content

Commit

Permalink
Allow specifying deployment annotations in values
Browse files Browse the repository at this point in the history
  • Loading branch information
devth committed Sep 8, 2020
1 parent bade83e commit 83dfea4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/yetibot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type: application

# This is the chart version. This version number should be incremented each time
# you make changes to the chart and its templates, including the app version.
version: 1.0.18
version: 1.0.19

# This is the version number of the application being deployed. This version
# number should be incremented each time you make changes to the application.
Expand Down
3 changes: 3 additions & 0 deletions charts/yetibot/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ spec:
annotations:
# roll new pods when config changes
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
{{- with .Values.deployment.annotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "yetibot.selectorLabels" . | nindent 8 }}
spec:
Expand Down
4 changes: 4 additions & 0 deletions charts/yetibot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

deployment:
# Annotations to add to the deployment
annotations: {}

serviceAccount:
# Specifies whether a service account should be created
create: true
Expand Down

0 comments on commit 83dfea4

Please sign in to comment.