From 402d81187a5c10c8691f38cdffae9166ded54d72 Mon Sep 17 00:00:00 2001 From: amerghazal Date: Tue, 20 Feb 2018 00:03:38 -0600 Subject: [PATCH] [incubator/gocd] Add support for custom annotations (#3757) --- incubator/gocd/Chart.yaml | 2 +- incubator/gocd/templates/service.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/incubator/gocd/Chart.yaml b/incubator/gocd/Chart.yaml index b2908f022c..47235f89ff 100644 --- a/incubator/gocd/Chart.yaml +++ b/incubator/gocd/Chart.yaml @@ -1,6 +1,6 @@ name: gocd home: https://www.gocd.org/ -version: 0.1.0 +version: 0.2.0 appVersion: 18.1.0 description: A GoCD Helm chart for Kubernetes. GoCD is an Open source continuous delivery server to model and visualize complex workflows with ease. icon: https://gocd.github.io/assets/images/go-icon-black-192x192.svg diff --git a/incubator/gocd/templates/service.yaml b/incubator/gocd/templates/service.yaml index fc847a1787..57706d50b4 100644 --- a/incubator/gocd/templates/service.yaml +++ b/incubator/gocd/templates/service.yaml @@ -2,6 +2,10 @@ apiVersion: v1 kind: Service metadata: name: {{ template "gocd.fullname" . }}-server + annotations: + {{- range $key, $value := .Values.server.service.annotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} labels: app: {{ template "gocd.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"