From 1ed56e9f26e3d4846e71829e3f5e1b1bd68ae8be Mon Sep 17 00:00:00 2001 From: Jeff Billimek Date: Mon, 7 Oct 2019 13:34:17 -0400 Subject: [PATCH] adding pod annotations to comcast chart (#76) Signed-off-by: Jeff Billimek --- comcast/Chart.yaml | 2 +- comcast/README.md | 1 + comcast/templates/deployment.yaml | 6 ++++++ comcast/values.yaml | 2 ++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/comcast/Chart.yaml b/comcast/Chart.yaml index dcd3f651..d57c2a68 100644 --- a/comcast/Chart.yaml +++ b/comcast/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: comcast -version: 1.0.6 +version: 1.0.7 appVersion: 1.0.0 description: periodic comcast data usage checks and save the results to InfluxDB keywords: diff --git a/comcast/README.md b/comcast/README.md index f68fc414..01509393 100644 --- a/comcast/README.md +++ b/comcast/README.md @@ -55,6 +55,7 @@ The following tables lists the configurable parameters of the Sentry chart and t | `config.influxdb.ssl` | InfluxDB connection using SSL | `false` | | `config.comcast.username` | Comcast website login usernma | `someuser` | | `config.comcast.password` | Comcast website login password | `somepassword` | +| `podAnnotations` | Key-value pairs to add as pod annotations | `{}` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/comcast/templates/deployment.yaml b/comcast/templates/deployment.yaml index 74b0a827..81127803 100644 --- a/comcast/templates/deployment.yaml +++ b/comcast/templates/deployment.yaml @@ -7,6 +7,12 @@ metadata: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: {{ .Release.Name }} heritage: {{ .Release.Service }} + {{- if .Values.podAnnotations }} + annotations: + {{- range $key, $value := .Values.podAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} spec: selector: matchLabels: diff --git a/comcast/values.yaml b/comcast/values.yaml index 1291479f..75e92248 100644 --- a/comcast/values.yaml +++ b/comcast/values.yaml @@ -34,3 +34,5 @@ config: # username/password are mandatory and must be populated username: someuser password: somepassword + +podAnnotations: {}