Skip to content

Commit

Permalink
[stable/neo4j] Add an option to disable the usage of persistent volum…
Browse files Browse the repository at this point in the history
…es (helm#10381)

* Add an option to disable the usage of persistent volumes

Signed-off-by: Mikołaj Robakowski <[email protected]>

* bump chart version

Signed-off-by: Mikołaj Robakowski <[email protected]>
  • Loading branch information
mrobakowski authored and k8s-ci-robot committed Jan 11, 2019
1 parent 33a9f0e commit af84404
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/neo4j/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions stable/neo4j/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
6 changes: 6 additions & 0 deletions stable/neo4j/templates/core-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -117,3 +122,4 @@ spec:
resources:
requests:
storage: "{{ .Values.core.persistentVolume.size }}"
{{- end }}
3 changes: 3 additions & 0 deletions stable/neo4j/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
##
Expand Down

0 comments on commit af84404

Please sign in to comment.