adding pod annotations to speedtest chart (#78)

Signed-off-by: Jeff Billimek <jeff@billimek.com>
This commit is contained in:
Jeff Billimek 2019-10-07 13:40:18 -04:00 committed by GitHub
parent 897ba1e981
commit 6884ae9cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,6 @@
apiVersion: v1 apiVersion: v1
name: speedtest name: speedtest
version: 1.1.7 version: 1.1.8
appVersion: 1.0.0 appVersion: 1.0.0
description: periodic speedtest and save the results to InfluxDB description: periodic speedtest and save the results to InfluxDB
keywords: keywords:

View File

@ -51,6 +51,8 @@ The following tables lists the configurable parameters of the Sentry chart and t
| `config.influxdb.password` | InfluxDB password | `` | | `config.influxdb.password` | InfluxDB password | `` |
| `config.influxdb.ssl` | InfluxDB connection using SSL | `false` | | `config.influxdb.ssl` | InfluxDB connection using SSL | `false` |
| `config.speedtest.server` | server to use for speedtest - leave blank to auto-pick | `` | | `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, Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,

View File

@ -7,6 +7,12 @@ metadata:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: {{ .Release.Name }} release: {{ .Release.Name }}
heritage: {{ .Release.Service }} heritage: {{ .Release.Service }}
{{- if .Values.podAnnotations }}
annotations:
{{- range $key, $value := .Values.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec: spec:
selector: selector:
matchLabels: matchLabels:

View File

@ -33,3 +33,5 @@ config:
speedtest: speedtest:
# Leave blank to auto pick server # Leave blank to auto pick server
server: server:
podAnnotations: {}