diff --git a/speedtest/Chart.yaml b/speedtest/Chart.yaml index 84b3eeda..0e89ec83 100644 --- a/speedtest/Chart.yaml +++ b/speedtest/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: speedtest -version: 1.1.7 +version: 1.1.8 appVersion: 1.0.0 description: periodic speedtest and save the results to InfluxDB keywords: diff --git a/speedtest/README.md b/speedtest/README.md index ede72caf..37a789dd 100644 --- a/speedtest/README.md +++ b/speedtest/README.md @@ -51,6 +51,8 @@ The following tables lists the configurable parameters of the Sentry chart and t | `config.influxdb.password` | InfluxDB password | `` | | `config.influxdb.ssl` | InfluxDB connection using SSL | `false` | | `config.speedtest.server` | server to use for speedtest - leave blank to auto-pick | `` | +| `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/speedtest/templates/deployment.yaml b/speedtest/templates/deployment.yaml index 022dba08..5b50ebea 100644 --- a/speedtest/templates/deployment.yaml +++ b/speedtest/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/speedtest/values.yaml b/speedtest/values.yaml index 345cc128..252457fc 100644 --- a/speedtest/values.yaml +++ b/speedtest/values.yaml @@ -33,3 +33,5 @@ config: speedtest: # Leave blank to auto pick server server: + +podAnnotations: {}