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

fix onlyoffice-deployment persistence variable

parent 54723363
No related branches found
No related tags found
1 merge request!37Add option to make `/var/lib/onlyoffice` a persistent directory
...@@ -3,7 +3,7 @@ apiVersion: v2 ...@@ -3,7 +3,7 @@ apiVersion: v2
description: | description: |
A helm chart for installing NextCloud and setting up ONLYOFFICE integration A helm chart for installing NextCloud and setting up ONLYOFFICE integration
name: nextcloud-onlyoffice name: nextcloud-onlyoffice
version: 0.2.9 version: 0.2.9-alpha1
appVersion: NC-19.0.3-OO-6.2.2.21 appVersion: NC-19.0.3-OO-6.2.2.21
dependencies: dependencies:
- name: nextcloud - name: nextcloud
......
...@@ -102,9 +102,9 @@ spec: ...@@ -102,9 +102,9 @@ spec:
mountPath: /var/lib/onlyoffice mountPath: /var/lib/onlyoffice
volumes: volumes:
- name: onlyoffice-data - name: onlyoffice-data
{{- if .Values.persistence.enabled }} {{- if .Values.onlyoffice.persistence.enabled }}
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "onlyoffice-documentserver.fullname" . }}-onlyoffice{{- end }} claimName: {{ if .Values.onlyoffice.persistence.existingClaim }}{{ .Values.onlyoffice.persistence.existingClaim }}{{- else }}{{ template "onlyoffice-documentserver.fullname" . }}-onlyoffice{{- end }}
{{- else }} {{- else }}
emptyDir: {} emptyDir: {}
{{- end }} {{- end }}
......
{{- if .Values.onlyoffice.persistence.enabled -}}
{{- if not .Values.onlyoffice.persistence.existingClaim -}}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ template "onlyoffice-documentserver.fullname" . }}-onlyoffice
labels:
app.kubernetes.io/name: {{ include "onlyoffice-documentserver.name" . }}
helm.sh/chart: {{ include "onlyoffice-documentserver.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/component: app
{{- if .Values.onlyoffice.persistence.annotations }}
annotations:
{{ toYaml .Values.onlyoffice.persistence.annotations | indent 4 }}
{{- end }}
spec:
accessModes:
- {{ .Values.onlyoffice.persistence.accessMode | quote }}
resources:
requests:
storage: {{ .Values.onlyoffice.persistence.size | quote }}
{{- if .Values.onlyoffice.persistence.storageClass }}
{{- if (eq "-" .Values.onlyoffice.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.onlyoffice.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end -}}
{{- end -}}
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