From 098d67c69942205248d2b1682f9707f37d241bed Mon Sep 17 00:00:00 2001 From: James Rawlings Date: Tue, 5 Dec 2017 20:50:02 +0000 Subject: [PATCH] add optional service annotations to nexus chart (#2783) --- stable/sonatype-nexus/templates/service.yaml | 4 ++++ stable/sonatype-nexus/values.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/stable/sonatype-nexus/templates/service.yaml b/stable/sonatype-nexus/templates/service.yaml index e808f35823..9c0da1a38b 100644 --- a/stable/sonatype-nexus/templates/service.yaml +++ b/stable/sonatype-nexus/templates/service.yaml @@ -7,6 +7,10 @@ metadata: chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} +{{- if .Values.service.annotations }} + annotations: +{{ toYaml .Values.service.annotations | indent 4 }} +{{- end }} spec: type: {{ .Values.service.type }} ports: diff --git a/stable/sonatype-nexus/values.yaml b/stable/sonatype-nexus/values.yaml index 206646348d..8809a43f03 100644 --- a/stable/sonatype-nexus/values.yaml +++ b/stable/sonatype-nexus/values.yaml @@ -17,6 +17,8 @@ service: livenessProbe: initialDelaySeconds: 30 periodSeconds: 30 + annotations: + # foo.io/bar: "true" ingress: enabled: false # Used to create an Ingress record.