Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: initContainer execution with skipChown enabled #43

Merged
merged 2 commits into from
Jun 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
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