diff --git a/CHANGELOG.md b/CHANGELOG.md index 129736b172acab211464b2c88df9a5e2baf82d1d..fe2130e9533b3b1ea9529d7a2a54258eb993e73f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [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 diff --git a/Chart.yaml b/Chart.yaml index 2aee12bf3c33890687764ee2f8bcbc770b6e0b68..bb9c7fc33c85205772a9010a60818a7a3d823f42 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -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 diff --git a/templates/onlyoffice-deployment.yaml b/templates/onlyoffice-deployment.yaml index 8864bcdb0be0b18652399fa37bd3932eb4f54705..73a7695134c86305550397a71750faea18ec4e46 100644 --- a/templates/onlyoffice-deployment.yaml +++ b/templates/onlyoffice-deployment.yaml @@ -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 }} diff --git a/values.yaml b/values.yaml index 67bb0c7cf5c4a49ed4ef822fe07c95d469d588da..c57dbebfe286ca3c9130da9ded4bbcb7180600d3 100644 --- a/values.yaml +++ b/values.yaml @@ -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: ''