From 811ecd0e9c75c6cf96e42316bae95c88589bf9a7 Mon Sep 17 00:00:00 2001 From: Dennis Sieben Date: Thu, 15 Jun 2023 17:43:37 +0200 Subject: [PATCH 1/2] - fix initContainer execution with skipChown enabled --- charts/owncloud/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/owncloud/templates/deployment.yaml b/charts/owncloud/templates/deployment.yaml index a8005be..0683add 100644 --- a/charts/owncloud/templates/deployment.yaml +++ b/charts/owncloud/templates/deployment.yaml @@ -41,7 +41,7 @@ spec: mountPath: {{ .Values.owncloud.volume.root }} resources: {{- toYaml .Values.initResources | nindent 12 }} - {{- if not .Values.skipChown }} + {{- if not .Values.owncloud.skipChown }} - name: "init-{{ .Chart.Name }}-chown" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" command: ['sh', '-c', "chown -R www-data:www-data {{ .Values.owncloud.volume.root }}"] From b09bfe2bb77be00f10cb83c4df95160d7dc38679 Mon Sep 17 00:00:00 2001 From: Dennis Sieben Date: Mon, 19 Jun 2023 10:57:50 +0200 Subject: [PATCH 2/2] - adjusted main container to always skip chown (will be done by initContainer) - adjusted ci to disable skipChown (like it was before due to the wrong check) --- charts/owncloud/templates/deployment.yaml | 2 +- ci/ci-values.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/owncloud/templates/deployment.yaml b/charts/owncloud/templates/deployment.yaml index 0683add..369feef 100644 --- a/charts/owncloud/templates/deployment.yaml +++ b/charts/owncloud/templates/deployment.yaml @@ -378,7 +378,7 @@ spec: - name: OWNCLOUD_SKIP_CHMOD value: {{ .Values.owncloud.skipChmod | quote }} - name: OWNCLOUD_SKIP_CHOWN - value: {{ .Values.owncloud.skipChown | quote }} + value: "true" - name: OWNCLOUD_SMB_LOGGING_ENABLE value: {{ .Values.owncloud.smbLoggingEnable | quote }} - name: OWNCLOUD_SQLITE_JOURNAL_MODE diff --git a/ci/ci-values.yaml b/ci/ci-values.yaml index 54c0b48..7e6cf64 100644 --- a/ci/ci-values.yaml +++ b/ci/ci-values.yaml @@ -6,6 +6,9 @@ service: type: NodePort port: 8080 +owncloud: + skipChown: false + initResources: limits: cpu: 100m