From 5d4b769dd4cb63d7ccc1a9164b06dcb3605aeaa2 Mon Sep 17 00:00:00 2001 From: Harold Drost Date: Sun, 1 Oct 2017 05:00:04 +0100 Subject: [PATCH] Allow annotations for service. (#2306) * Allow annotations for service. * Bumped version of chart * Allow annotations for service. --- stable/influxdb/Chart.yaml | 2 +- stable/influxdb/templates/service.yaml | 4 ++++ stable/influxdb/values.yaml | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/stable/influxdb/Chart.yaml b/stable/influxdb/Chart.yaml index d54fa71c50..03abae4b02 100755 --- a/stable/influxdb/Chart.yaml +++ b/stable/influxdb/Chart.yaml @@ -1,5 +1,5 @@ name: influxdb -version: 0.4.3 +version: 0.4.4 description: Scalable datastore for metrics, events, and real-time analytics. keywords: - influxdb diff --git a/stable/influxdb/templates/service.yaml b/stable/influxdb/templates/service.yaml index a28c6a88aa..22bc669ce6 100644 --- a/stable/influxdb/templates/service.yaml +++ b/stable/influxdb/templates/service.yaml @@ -1,6 +1,10 @@ apiVersion: v1 kind: Service metadata: +{{- if .Values.service.annotations }} + annotations: +{{ toYaml .Values.service.annotations | indent 4 }} +{{- end }} name: {{ template "fullname" . }} labels: app: {{ template "fullname" . }} diff --git a/stable/influxdb/values.yaml b/stable/influxdb/values.yaml index 37c0fd62d7..4a7382e054 100644 --- a/stable/influxdb/values.yaml +++ b/stable/influxdb/values.yaml @@ -10,9 +10,11 @@ image: ## ref: http://kubernetes.io/docs/user-guide/services/ ## service: + ## Add annotations to service + # annotations: {} type: ClusterIP -## Persist data to a persitent volume +## Persist data to a persistent volume ## persistence: enabled: false