Skip to content
Snippets Groups Projects
Verified Commit 54723363 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

Add option to make `/var/lib/onlyoffice` a persistent directory

parent b8d6d286
No related branches found
No related tags found
1 merge request!37Add option to make `/var/lib/onlyoffice` a persistent directory
## [0.2.9] - 2021-06-14
* Add option to make `/var/lib/onlyoffice` a persistent directory
## [0.2.8] - 2021-06-14
* Enable ONLYOFFICE "forcesave" feature by default
......@@ -8,7 +12,7 @@
## [0.2.6] - 2021-03-18
* Allow USE_UNAUTHORIZED_STORAGE and ONLYOFFICE_HTTPS_HSTS_ENABLED
* Allow `USE_UNAUTHORIZED_STORAGE` and `ONLYOFFICE_HTTPS_HSTS_ENABLED`
## [0.2.5] - 2021-03-18
......
......@@ -3,7 +3,7 @@ apiVersion: v2
description: |
A helm chart for installing NextCloud and setting up ONLYOFFICE integration
name: nextcloud-onlyoffice
version: 0.2.8
version: 0.2.9
appVersion: NC-19.0.3-OO-6.2.2.21
dependencies:
- name: nextcloud
......
......@@ -97,6 +97,17 @@ spec:
{{- toYaml .Values.onlyoffice.resources | nindent 12 }}
securityContext:
{{- toYaml .Values.onlyoffice.securityContext | nindent 12 }}
volumeMounts:
- name: onlyoffice-data
mountPath: /var/lib/onlyoffice
volumes:
- name: onlyoffice-data
{{- if .Values.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "onlyoffice-documentserver.fullname" . }}-onlyoffice{{- end }}
{{- else }}
emptyDir: {}
{{- end }}
{{- with .Values.onlyoffice.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
......
......@@ -77,6 +77,30 @@ onlyoffice:
strategy: Recreate
## Enable persistence using Persistent Volume Claims
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
##
persistence:
# ONLYOFFICE Data (/var/lib/onlyoffice)
enabled: false
annotations: {}
## nextcloud data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
# storageClass: "-"
## A manually managed Persistent Volume and Claim
## Requires persistence.enabled: true
## If defined, PVC must be created manually before volume will be bound
# existingClaim:
accessMode: ReadWriteOnce
size: 2Gi
nameOverride: ''
fullnameOverride: ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment