From 6c54fd65ebd33921ecd878947fcc8609aef992c3 Mon Sep 17 00:00:00 2001 From: niangao Date: Tue, 8 Jan 2019 15:06:31 +0800 Subject: [PATCH] add service annotation support --- influxdb/templates/service.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/influxdb/templates/service.yaml b/influxdb/templates/service.yaml index 2952d6f..0dd7586 100644 --- a/influxdb/templates/service.yaml +++ b/influxdb/templates/service.yaml @@ -7,6 +7,10 @@ metadata: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" +{{- if .Values.service.annotations }} + annotations: +{{ toYaml .Values.service.annotations | indent 4 }} +{{- end }} spec: type: {{ .Values.service.type }} ports: