fix(owncloud-ocis): Fix init (#3630)

* fix(owncloud-ocis): Fix init

* bump

* fix persistence

* test init

* test init

* test again

* test
This commit is contained in:
sagit
2022-08-31 04:04:32 +08:00
committed by GitHub
parent 9c232f799a
commit 73ce9ccc08
3 changed files with 27 additions and 1 deletions
+1 -1
View File
@@ -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
@@ -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:
+17
View File
@@ -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