Files
Havrileck Alexandre 9f1db2d47d [stable/nextcloud] Add flexibility and more configurations (#16205)
* [stable/nextcloud] Allow to inject custom php configuration files

Signed-off-by: Alexandre Havrileck <alexandre.havrileck@easymile.com>

* [stable/nextcloud] Add annotations and labels on PVC

Signed-off-by: Alexandre Havrileck <alexandre.havrileck@easymile.com>

* [stable/nextcloud] Add fs group of www-data for mounted files

Signed-off-by: Alexandre Havrileck <alexandre.havrileck@easymile.com>

* [stable/nextcloud] Change mount path of PVC

Signed-off-by: Alexandre Havrileck <alexandre.havrileck@easymile.com>

* [stable/nextcloud] Add tmp directory in volume

This directory can be used for uploads as temporary directory

Signed-off-by: Alexandre Havrileck <alexandre.havrileck@easymile.com>

* [stable/nextcloud] Fix cronjob job template labels for new helm spec

Signed-off-by: Alexandre Havrileck <alexandre.havrileck@easymile.com>

* [stable/nextcloud] Allow change of cronjob image and add pull secrets

Signed-off-by: Alexandre Havrileck <alexandre.havrileck@easymile.com>

* [stable/nextcloud] Allow change cronjob resources,tolerations,affinity

Signed-off-by: Alexandre Havrileck <alexandre.havrileck@easymile.com>

* [stable/nextcloud] Cronjob (curl) follow redirect

Signed-off-by: Alexandre Havrileck <alexandre.havrileck@easymile.com>

* [stable/nextcloud] Add default values for persistence annotations

Signed-off-by: Alexandre Havrileck <alexandre.havrileck@easymile.com>

* [stable/nextcloud] Add all default nextcloud configurations

Signed-off-by: Alexandre Havrileck <alexandre.havrileck@easymile.com>

* [stable/nextcloud] Update documentation with new values and indent

Signed-off-by: Alexandre Havrileck <alexandre.havrileck@easymile.com>

* [stable/nextcloud] Upgrade chart version

Signed-off-by: Alexandre Havrileck <alexandre.havrileck@easymile.com>

* [stable/nextcloud] Fix trailing spaces in default values

Signed-off-by: Alexandre Havrileck <alexandre.havrileck@easymile.com>

* [stable/nextcloud] Fix default values for cronjob image declaration

Signed-off-by: Alexandre Havrileck <alexandre.havrileck@easymile.com>

* [stable/nextcloud] Fix default configs not mounted

Signed-off-by: Alexandre Havrileck <alexandre.havrileck@easymile.com>

* [stable/nextcloud] Mount default configs only if extra configs exists

Signed-off-by: Havrileck Alexandre <havrileckalexandre@gmail.com>
2019-08-10 03:53:13 -07:00

31 lines
944 B
YAML

{{- if .Values.persistence.enabled -}}
{{- if not .Values.persistence.existingClaim -}}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ template "nextcloud.fullname" . }}-nextcloud
labels:
app.kubernetes.io/name: {{ include "nextcloud.name" . }}
helm.sh/chart: {{ include "nextcloud.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.persistence.annotations }}
annotations:
{{ toYaml .Values.persistence.annotations | indent 4 }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.accessMode | quote }}
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
{{- if .Values.persistence.storageClass }}
{{- if (eq "-" .Values.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end -}}
{{- end -}}