adding pod annotations to modem-stats chart (#77)

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

View File

@ -1,6 +1,6 @@
apiVersion: v1 apiVersion: v1
name: modem-stats name: modem-stats
version: 1.0.7 version: 1.0.8
appVersion: 1.0.0 appVersion: 1.0.0
description: periodic cable modem data collection and save the results to InfluxDB description: periodic cable modem data collection and save the results to InfluxDB
keywords: keywords:

View File

@ -50,6 +50,7 @@ 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.modem.url` | sb6183 stats URL page | `http://192.168.100.1/RgConnect.asp` | | `config.modem.url` | sb6183 stats URL page | `http://192.168.100.1/RgConnect.asp` |
| `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

@ -32,3 +32,5 @@ config:
ssl: false ssl: false
modem: modem:
url: http://192.168.100.1/RgConnect.asp url: http://192.168.100.1/RgConnect.asp
podAnnotations: {}