@@ -85,10 +85,10 @@ spec:
85
85
livenessProbe :
86
86
httpGet :
87
87
path : /status.php
88
- port : {{ $.Values.nextcloud.containerPort }}
88
+ port : {{ $.Values.nextcloud.containerPort }}
89
89
httpHeaders :
90
- - name : Host
91
- value : {{ $.Values.nextcloud.host | quote }}
90
+ - name : Host
91
+ value : {{ $.Values.nextcloud.host | quote }}
92
92
initialDelaySeconds : {{ .initialDelaySeconds }}
93
93
periodSeconds : {{ .periodSeconds }}
94
94
timeoutSeconds : {{ .timeoutSeconds }}
@@ -101,10 +101,10 @@ spec:
101
101
readinessProbe :
102
102
httpGet :
103
103
path : /status.php
104
- port : {{ $.Values.nextcloud.containerPort }}
104
+ port : {{ $.Values.nextcloud.containerPort }}
105
105
httpHeaders :
106
- - name : Host
107
- value : {{ $.Values.nextcloud.host | quote }}
106
+ - name : Host
107
+ value : {{ $.Values.nextcloud.host | quote }}
108
108
initialDelaySeconds : {{ .initialDelaySeconds }}
109
109
periodSeconds : {{ .periodSeconds }}
110
110
timeoutSeconds : {{ .timeoutSeconds }}
@@ -117,10 +117,10 @@ spec:
117
117
startupProbe :
118
118
httpGet :
119
119
path : /status.php
120
- port : {{ $.Values.nextcloud.containerPort }}
120
+ port : {{ $.Values.nextcloud.containerPort }}
121
121
httpHeaders :
122
- - name : Host
123
- value : {{ $.Values.nextcloud.host | quote }}
122
+ - name : Host
123
+ value : {{ $.Values.nextcloud.host | quote }}
124
124
initialDelaySeconds : {{ .initialDelaySeconds }}
125
125
periodSeconds : {{ .periodSeconds }}
126
126
timeoutSeconds : {{ .timeoutSeconds }}
@@ -158,7 +158,7 @@ spec:
158
158
livenessProbe :
159
159
httpGet :
160
160
path : /status.php
161
- port : {{ $.Values.nextcloud.containerPort }}
161
+ port : {{ $.Values.nextcloud.containerPort }}
162
162
httpHeaders :
163
163
- name : Host
164
164
value : {{ $.Values.nextcloud.host | quote }}
@@ -174,7 +174,7 @@ spec:
174
174
readinessProbe :
175
175
httpGet :
176
176
path : /status.php
177
- port : {{ $.Values.nextcloud.containerPort }}
177
+ port : {{ $.Values.nextcloud.containerPort }}
178
178
httpHeaders :
179
179
- name : Host
180
180
value : {{ $.Values.nextcloud.host | quote }}
@@ -190,7 +190,7 @@ spec:
190
190
startupProbe :
191
191
httpGet :
192
192
path : /status.php
193
- port : {{ $.Values.nextcloud.containerPort }}
193
+ port : {{ $.Values.nextcloud.containerPort }}
194
194
httpHeaders :
195
195
- name : Host
196
196
value : {{ $.Values.nextcloud.host | quote }}
@@ -274,6 +274,25 @@ spec:
274
274
volumeMounts :
275
275
{{- include "nextcloud.volumeMounts" . | trim | nindent 12 }}
276
276
{{- end }}{{/* end-if cronjob.enabled */}}
277
+ {{ if .Values.clientPush.enabled }}
278
+ - name : {{ .Chart.Name }}-client-push
279
+ image : {{ include "nextcloud.image" . }}
280
+ imagePullPolicy : {{ .Values.image.pullPolicy }}
281
+ command :
282
+ - custom_apps/notify_push/bin/x86_64/notify_push
283
+ args :
284
+ - config/config.php
285
+ env :
286
+ - name : NEXTCLOUD_URL
287
+ value : http://localhost:80
288
+ volumeMounts :
289
+ - name : nextcloud-main
290
+ mountPath : /var/www/html/custom_apps
291
+ subPath : {{ ternary "custom_apps" (printf "%s/custom_apps" .Values.nextcloud.persistence.subPath) (empty .Values.nextcloud.persistence.subPath) }}
292
+ - name : nextcloud-main
293
+ mountPath : /var/www/html/config
294
+ subPath : {{ ternary "config" (printf "%s/config" .Values.nextcloud.persistence.subPath) (empty .Values.nextcloud.persistence.subPath) }}
295
+ {{- end }}{{/* end-if clientPush.enabled */}}
277
296
{{- with .Values.nextcloud.extraSidecarContainers }}
278
297
{{- toYaml . | nindent 8 }}
279
298
{{- end }}
@@ -335,7 +354,7 @@ spec:
335
354
persistentVolumeClaim :
336
355
claimName : {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "nextcloud.fullname" . }}-nextcloud{{- end }}
337
356
{{- else }}
338
- emptyDir : {}
357
+ emptyDir : { }
339
358
{{- end }}
340
359
{{- if and .Values.persistence.nextcloudData.enabled .Values.persistence.enabled }}
341
360
- name : nextcloud-data
0 commit comments