From 897ba1e98165893459a51df5fa44680c05bdbbd1 Mon Sep 17 00:00:00 2001 From: Jeff Billimek Date: Mon, 7 Oct 2019 13:38:52 -0400 Subject: [PATCH] adding pod annotations to uptimerobot chart (#79) Signed-off-by: Jeff Billimek --- uptimerobot/Chart.yaml | 2 +- uptimerobot/README.md | 2 ++ uptimerobot/templates/deployment.yaml | 6 ++++++ uptimerobot/values.yaml | 2 ++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/uptimerobot/Chart.yaml b/uptimerobot/Chart.yaml index 7d7e9a7d..e83b2400 100644 --- a/uptimerobot/Chart.yaml +++ b/uptimerobot/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: uptimerobot -version: 1.1.10 +version: 1.1.11 appVersion: 1.1.0 description: A tool to get statistics from Uptime Robot and log it into InfluxDB keywords: diff --git a/uptimerobot/README.md b/uptimerobot/README.md index 15e72dec..f571c66d 100644 --- a/uptimerobot/README.md +++ b/uptimerobot/README.md @@ -53,6 +53,8 @@ The following tables lists the configurable parameters of the Sentry chart and t | `config.influxdb.username` | InfluxDB username | `` | | `config.influxdb.password` | InfluxDB password | `` | | `config.uptimerobot.apikey` | uptimerobot API key (REQUIRED) | `someapikey` | +| `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/uptimerobot/templates/deployment.yaml b/uptimerobot/templates/deployment.yaml index 61157f5f..6961d976 100644 --- a/uptimerobot/templates/deployment.yaml +++ b/uptimerobot/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/uptimerobot/values.yaml b/uptimerobot/values.yaml index 3307b724..ee447f33 100644 --- a/uptimerobot/values.yaml +++ b/uptimerobot/values.yaml @@ -34,3 +34,5 @@ config: apikey: someapikey # logs_limit: 100 # response_times_limit: 100 + +podAnnotations: {}