[stable/neo4j] Add an option to disable the usage of persistent volumes (#10381)

* Add an option to disable the usage of persistent volumes

Signed-off-by: Mikołaj Robakowski <mikolaj.rob@gmail.com>

* bump chart version

Signed-off-by: Mikołaj Robakowski <mikolaj.rob@gmail.com>
This commit is contained in:
Mikołaj Robakowski
2019-01-11 03:00:19 -08:00
committed by Kubernetes Prow Robot
parent 33a9f0ee8b
commit af844046a6
4 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: neo4j
home: https://www.neo4j.com
version: 0.9.0
version: 0.10.0
appVersion: 3.4.5
description: Neo4j is the world's leading graph database
icon: http://info.neo4j.com/rs/773-GON-065/images/neo4j_logo.png
+1
View File
@@ -66,6 +66,7 @@ their default values.
| `core.numberOfServers` | Number of machines in CORE mode | `3` |
| `core.sideCarContainers` | Sidecar containers to add to the core pod. Example use case is a sidecar which identifies and labels the leader when using the http API | `{}` |
| `core.initContainers` | Init containers to add to the core pod. Example use case is a script that installs the APOC library | `{}` |
| `core.persistentVolume.enabled` | Whether or not persistence is enabled | `true` |
| `core.persistentVolume.storageClass` | Storage class of backing PVC | `standard` (uses beta storage class annotation) |
| `core.persistentVolume.size` | Size of data volume | `10Gi` |
| `core.persistentVolume.mountPath` | Persistent Volume mount root path | `/data` |
@@ -95,8 +95,13 @@ spec:
{{ toYaml .Values.core.initContainers | indent 6 }}
{{- end }}
volumes:
{{- if not .Values.core.persistentVolume.enabled }}
- name: datadir
emptyDir: {}
{{- end }}
- name: plugins
emptyDir: {}
{{- if .Values.core.persistentVolume.enabled }}
volumeClaimTemplates:
- metadata:
name: datadir
@@ -117,3 +122,4 @@ spec:
resources:
requests:
storage: "{{ .Values.core.persistentVolume.size }}"
{{- end }}
+3
View File
@@ -33,6 +33,9 @@ testImageTag: "master"
core:
numberOfServers: 3
persistentVolume:
## whether or not persistence is enabled
##
enabled: true
## core server data Persistent Volume mount root path
##