[stable/sonatype-nexus] fix reusability of existing claim (#4438)

* Deployment does not use the existing volume claim name when mounting
volume

Signed-off-by: rodesousa <dessroberto@gmail.com>
This commit is contained in:
rodesousa
2018-03-29 13:33:02 -07:00
committed by k8s-ci-robot
parent b6b5701793
commit 71cafadedf
4 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: sonatype-nexus
version: 0.1.9
version: 0.2.0
appVersion: 3.9.0
description: Sonatype Nexus is an open source repository manager
keywords:
+1
View File
@@ -51,6 +51,7 @@ The following table lists the configurable parameters of the Nexus chart and the
| `persistence.storageClass` | Type of persistent volume claim | nil (uses alpha storage class annotation) |
| `persistence.accessMode` | ReadWriteOnce or ReadOnly | ReadWriteOnce |
| `persistence.annotations` | Persistent Volume annotations | {} |
| `persistence.existingClaim` | Existing persistent volume name | "" |
| `service.type` | Kubernetes Service type | `LoadBalancer` |
| `service.readinessProbe.initialDelaySeconds`| ReadinessProbe initial delay | 30 |
| `service.readinessProbe.periodSeconds` | Seconds between polls | 30 |
@@ -24,7 +24,7 @@ spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
@@ -56,7 +56,7 @@ spec:
- name: nexus-data-volume
{{- if .Values.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ template "fullname" . }}
claimName: {{ .Values.persistence.existingClaim | default (print (include "fullname" .)) }}
{{- else }}
emptyDir: {}
{{- end -}}
+1
View File
@@ -52,6 +52,7 @@ persistence:
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
# existingClaim: ""
# storageClass: "-"
# annotations:
# "helm.sh/resource-policy": keep