Commit abeede73 authored by Waqar Ahmed's avatar Waqar Ahmed

Allow specifying extra volumes for nextcloud

parent 3ee8fef4
...@@ -134,6 +134,31 @@ questions: ...@@ -134,6 +134,31 @@ questions:
type: hostpath type: hostpath
required: true required: true
- variable: extraAppVolumeMounts
label: "Nextcloud Extra Host Path Volumes"
group: "Storage"
schema:
type: list
items:
- variable: extraAppVolume
label: "Nextcloud Host Path Volume"
description: "Add an extra host path volume for nextcloud application"
schema:
type: dict
attrs:
- variable: mountPath
label: "Mount Path in Pod"
description: "Path where the volume will be mounted inside the pod"
schema:
type: path
required: true
- variable: hostPath
label: "Host Path"
description: "Host path"
schema:
type: hostpath
required: true
- variable: postgresAppVolumeMounts - variable: postgresAppVolumeMounts
label: "Postgres Storage" label: "Postgres Storage"
group: "Storage" group: "Storage"
......
...@@ -48,7 +48,16 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }} ...@@ -48,7 +48,16 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
- name: nextcloud-data - name: nextcloud-data
mountPath: /var/www/html/themes mountPath: /var/www/html/themes
subPath: "themes" subPath: "themes"
{{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
- name: extrappvolume-{{ $index }}
mountPath: {{ $hostPathConfiguration.mountPath }}
{{ end }}
{{ include "common.storage.allAppVolumes" .Values | nindent 6 }} {{ include "common.storage.allAppVolumes" .Values | nindent 6 }}
{{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
- name: extrappvolume-{{ $index }}
hostPath:
path: {{ $hostPathConfiguration.hostPath }}
{{ end }}
# Will mount configuration files as www-data (id: 33) for nextcloud # Will mount configuration files as www-data (id: 33) for nextcloud
securityContext: securityContext:
fsGroup: 33 fsGroup: 33
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment