Skip to content

Commit 00d8a86

Browse files
fix(nextcloud): Reorder definitions of main and cronjob container #710
In a next step we could extract the common parts of the two containers to a helper template. Signed-off-by: Martin Kirchner <[email protected]>
1 parent 7036f27 commit 00d8a86

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

charts/nextcloud/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: nextcloud
3-
version: 6.6.8
3+
version: 6.6.9
44
# renovate: image=docker.io/library/nextcloud
55
appVersion: 30.0.6
66
description: A file sharing server that puts the control and security of your own data back into your hands.

charts/nextcloud/templates/deployment.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,22 @@ spec:
6969
{{- end }}
7070
env:
7171
{{- include "nextcloud.env" . | nindent 12 }}
72+
resources:
73+
{{- toYaml .Values.resources | nindent 12 }}
74+
{{- with .Values.nextcloud.securityContext }}
75+
securityContext:
76+
{{- toYaml . | nindent 12 }}
77+
{{- end }}
78+
volumeMounts:
79+
{{- include "nextcloud.volumeMounts" . | trim | nindent 12 }}
80+
{{- range $hook, $shell := .Values.nextcloud.hooks }}
81+
{{- if $shell }}
82+
- name: nextcloud-hooks
83+
mountPath: /docker-entrypoint-hooks.d/{{ $hook }}/helm.sh
84+
subPath: {{ $hook }}.sh
85+
readOnly: true
86+
{{- end }}
87+
{{- end }}
7288
{{- if not .Values.nginx.enabled }}
7389
ports:
7490
- name: http
@@ -123,22 +139,6 @@ spec:
123139
{{- end }}
124140
{{- end }}
125141
{{- end }}{{/* end-if not nginx.enabled */}}
126-
resources:
127-
{{- toYaml .Values.resources | nindent 12 }}
128-
{{- with .Values.nextcloud.securityContext }}
129-
securityContext:
130-
{{- toYaml . | nindent 12 }}
131-
{{- end }}
132-
volumeMounts:
133-
{{- include "nextcloud.volumeMounts" . | trim | nindent 12 }}
134-
{{- range $hook, $shell := .Values.nextcloud.hooks }}
135-
{{- if $shell }}
136-
- name: nextcloud-hooks
137-
mountPath: /docker-entrypoint-hooks.d/{{ $hook }}/helm.sh
138-
subPath: {{ $hook }}.sh
139-
readOnly: true
140-
{{- end }}
141-
{{- end }}
142142
{{- if .Values.nginx.enabled }}
143143
- name: {{ .Chart.Name }}-nginx
144144
image: "{{ .Values.nginx.image.repository }}:{{ .Values.nginx.image.tag }}"

0 commit comments

Comments
 (0)