From 73ce9ccc08c5356edc2625dfb6f755428104d2e1 Mon Sep 17 00:00:00 2001 From: sagit <36596628+Sagit-chu@users.noreply.github.com> Date: Wed, 31 Aug 2022 04:04:32 +0800 Subject: [PATCH] fix(owncloud-ocis): Fix init (#3630) * fix(owncloud-ocis): Fix init * bump * fix persistence * test init * test init * test again * test --- charts/stable/owncloud-ocis/Chart.yaml | 2 +- charts/stable/owncloud-ocis/questions.yaml | 9 +++++++++ charts/stable/owncloud-ocis/values.yaml | 17 +++++++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/charts/stable/owncloud-ocis/Chart.yaml b/charts/stable/owncloud-ocis/Chart.yaml index 84e7b52471c..fae11fb6119 100644 --- a/charts/stable/owncloud-ocis/Chart.yaml +++ b/charts/stable/owncloud-ocis/Chart.yaml @@ -26,7 +26,7 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/owncloud-ocis - https://hub.docker.com/r/owncloud/ocis - https://owncloud.dev/ocis/ -version: 7.0.28 +version: 8.0.0 annotations: truecharts.org/catagories: | - media diff --git a/charts/stable/owncloud-ocis/questions.yaml b/charts/stable/owncloud-ocis/questions.yaml index 5e3776e7eea..3e2b4d26050 100644 --- a/charts/stable/owncloud-ocis/questions.yaml +++ b/charts/stable/owncloud-ocis/questions.yaml @@ -97,6 +97,15 @@ questions: # Include{serviceList} # Include{persistenceRoot} - variable: data + label: "App Data Storage" + description: "Stores the Application Data." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} +# Include{persistenceAdvanced} + - variable: config label: "App Config Storage" description: "Stores the Application Configuration." schema: diff --git a/charts/stable/owncloud-ocis/values.yaml b/charts/stable/owncloud-ocis/values.yaml index 0be6844d5a4..1fe2bd35834 100644 --- a/charts/stable/owncloud-ocis/values.yaml +++ b/charts/stable/owncloud-ocis/values.yaml @@ -35,10 +35,27 @@ service: port: 9200 targetPort: 9200 +initContainers: + init: + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + volumeMounts: + - name: config + mountPath: "/etc/ocis" + command: + - "/bin/sh" + - "-c" + - | + /usr/bin/ocis init <<'EOF' + yes + EOF + persistence: data: enabled: true mountPath: "/var/lib/ocis" + config: + enabled: true + mountPath: "/etc/ocis" portal: enabled: true