diff --git a/stable/neo4j/Chart.yaml b/stable/neo4j/Chart.yaml index 8b492d81d7..337c2fb1a2 100644 --- a/stable/neo4j/Chart.yaml +++ b/stable/neo4j/Chart.yaml @@ -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 diff --git a/stable/neo4j/README.md b/stable/neo4j/README.md index e89e4ad3fc..8d4bbb706e 100644 --- a/stable/neo4j/README.md +++ b/stable/neo4j/README.md @@ -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` | diff --git a/stable/neo4j/templates/core-statefulset.yaml b/stable/neo4j/templates/core-statefulset.yaml index 0fa56483bd..dae3d70e8b 100644 --- a/stable/neo4j/templates/core-statefulset.yaml +++ b/stable/neo4j/templates/core-statefulset.yaml @@ -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 }} diff --git a/stable/neo4j/values.yaml b/stable/neo4j/values.yaml index be0681f1a8..88bf955b81 100644 --- a/stable/neo4j/values.yaml +++ b/stable/neo4j/values.yaml @@ -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 ##