diff --git a/modem-stats/Chart.yaml b/modem-stats/Chart.yaml index b2838c70..4c321296 100644 --- a/modem-stats/Chart.yaml +++ b/modem-stats/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: modem-stats -version: 1.0.7 +version: 1.0.8 appVersion: 1.0.0 description: periodic cable modem data collection and save the results to InfluxDB keywords: diff --git a/modem-stats/README.md b/modem-stats/README.md index 6d3f6380..1ee2ea38 100644 --- a/modem-stats/README.md +++ b/modem-stats/README.md @@ -50,6 +50,7 @@ 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.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, diff --git a/modem-stats/templates/deployment.yaml b/modem-stats/templates/deployment.yaml index 5af4e190..7066d0c8 100644 --- a/modem-stats/templates/deployment.yaml +++ b/modem-stats/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/modem-stats/values.yaml b/modem-stats/values.yaml index fc7deb47..22a89aa2 100644 --- a/modem-stats/values.yaml +++ b/modem-stats/values.yaml @@ -32,3 +32,5 @@ config: ssl: false modem: url: http://192.168.100.1/RgConnect.asp + +podAnnotations: {}