Skip to content

Commit

Permalink
fix: initContainer execution with skipChown enabled (#43)
Browse files Browse the repository at this point in the history
- fix initContainer execution with skipChown enabled
- 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)
  • Loading branch information
d7oc authored Jun 19, 2023
1 parent 03f116a commit 72cdf02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/owncloud/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {{ template "owncloud.image" . }}
command: ['sh', '-c', "chown -R www-data:www-data {{ .Values.owncloud.volume.root }}"]
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions ci/ci-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ service:
type: NodePort
port: 8080

owncloud:
skipChown: false

initResources:
limits:
cpu: 100m
Expand Down

0 comments on commit 72cdf02

Please sign in to comment.