From e60a3ca69ebafaf8f92b14d9c3add5f9debe5672 Mon Sep 17 00:00:00 2001 From: Kyle Williams <36274986+kyle-williams-1@users.noreply.github.com> Date: Wed, 26 Sep 2018 10:02:39 -0600 Subject: [PATCH] Add service label values for Nexus (#7973) * Add service label values for Nexus Add Nexus label values Add comment Signed-off-by: Kyle Williams * Version bump Nexus chart Signed-off-by: Kyle Williams * Update README Signed-off-by: Kyle Williams * Bump version Signed-off-by: Kyle Williams * Bump version Signed-off-by: Kyle Williams --- stable/sonatype-nexus/Chart.yaml | 2 +- stable/sonatype-nexus/README.md | 1 + stable/sonatype-nexus/templates/proxy-svc.yaml | 3 +++ stable/sonatype-nexus/values.yaml | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/stable/sonatype-nexus/Chart.yaml b/stable/sonatype-nexus/Chart.yaml index 25f0d2d796..d2e3676a17 100644 --- a/stable/sonatype-nexus/Chart.yaml +++ b/stable/sonatype-nexus/Chart.yaml @@ -1,5 +1,5 @@ name: sonatype-nexus -version: 1.8.0 +version: 1.9.0 appVersion: 3.13.0-01 description: Sonatype Nexus is an open source repository manager keywords: diff --git a/stable/sonatype-nexus/README.md b/stable/sonatype-nexus/README.md index 048f2198d6..c5e1738b8f 100644 --- a/stable/sonatype-nexus/README.md +++ b/stable/sonatype-nexus/README.md @@ -72,6 +72,7 @@ The following table lists the configurable parameters of the Nexus chart and the | `nexus.nexusPort` | Internal port for Nexus service | `8081` | | `nexus.serviceType` | Service for Nexus | `NodePort` | | `nexus.securityContext` | Security Context (for enabling official image use `fsGroup: 2000`) | `{}` | +| `nexus.labels` | Service labels | `{}` | | `nexus.livenessProbe.initialDelaySeconds` | LivenessProbe initial delay | 30 | | `nexus.livenessProbe.periodSeconds` | Seconds between polls | 30 | | `nexus.livenessProbe.failureThreshold` | Number of attempts before failure | 6 | diff --git a/stable/sonatype-nexus/templates/proxy-svc.yaml b/stable/sonatype-nexus/templates/proxy-svc.yaml index e73f8d22f4..409e362cd5 100644 --- a/stable/sonatype-nexus/templates/proxy-svc.yaml +++ b/stable/sonatype-nexus/templates/proxy-svc.yaml @@ -4,6 +4,9 @@ metadata: name: {{ template "nexus.fullname" . }} labels: {{ include "nexus.labels" . | indent 4 }} +{{- if .Values.nexus.labels }} +{{ toYaml .Values.nexus.labels | indent 4 }} +{{- end }} {{- if .Values.nexus.annotations }} annotations: {{ toYaml .Values.nexus.annotations | indent 4 }} diff --git a/stable/sonatype-nexus/values.yaml b/stable/sonatype-nexus/values.yaml index 8fb8eccefe..339159c309 100644 --- a/stable/sonatype-nexus/values.yaml +++ b/stable/sonatype-nexus/values.yaml @@ -26,6 +26,7 @@ nexus: nexusPort: 8081 serviceType: NodePort # annotations: {} + # labels: {} # securityContext: # fsGroup: 2000 livenessProbe: