File tree 4 files changed +34
-0
lines changed
4 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ /var/www/html/occ app:install notify_push
3
+ /var/www/html/occ notify_push:setup https://{{ .Values.nextcloud.host }}{{ .Values.notifyPush.ingress.path }}
Original file line number Diff line number Diff line change @@ -137,6 +137,12 @@ spec:
137
137
{{- end }}
138
138
volumeMounts :
139
139
{{- include "nextcloud.volumeMounts" . | trim | nindent 12 }}
140
+ {{- if and .Values.notifyPush.enabled .Values.notifyPush.autoSetup }}
141
+ - name : nextcloud-notify-hooks
142
+ mountPath : /docker-entrypoint-hooks.d/before-starting/notify_push.sh
143
+ subPath : notify_push.sh
144
+ readOnly : true
145
+ {{- end }}
140
146
{{- range $hook, $shell := .Values.nextcloud.hooks }}
141
147
{{- if $shell }}
142
148
- name : nextcloud-hooks
@@ -361,6 +367,15 @@ spec:
361
367
configMap :
362
368
name : {{ template "nextcloud.fullname" . }}-nginxconfig
363
369
{{- end }}
370
+ {{- if and .Values.notifyPush.enabled .Values.notifyPush.autoSetup }}
371
+ - name : nextcloud-notify-hooks
372
+ configMap :
373
+ name : {{ template "nextcloud.fullname" . }}-notify-push
374
+ defaultMode : 0o755
375
+ items :
376
+ - key : hook.sh
377
+ path : notify_push.sh
378
+ {{- end }}
364
379
{{- if not (values .Values.nextcloud.hooks | compact | empty) }}
365
380
- name : nextcloud-hooks
366
381
configMap :
Original file line number Diff line number Diff line change
1
+ {{- if and .Values.notifyPush.enabled .Values.notifyPush.autoSetup }}
2
+ ---
3
+ apiVersion : v1
4
+ kind : ConfigMap
5
+ metadata :
6
+ name : {{ template "nextcloud.fullname" . }}-notify-push
7
+ labels :
8
+ app.kubernetes.io/name : {{ include "nextcloud.name" . }}
9
+ helm.sh/chart : {{ include "nextcloud.chart" . }}
10
+ app.kubernetes.io/instance : {{ .Release.Name }}
11
+ app.kubernetes.io/managed-by : {{ .Release.Service }}
12
+ data :
13
+ hook.sh : |-
14
+ {{- tpl (.Files.Get "files/notify_push.sh.gotmpl" ) . | nindent 4 }}
15
+ {{- end }}
Original file line number Diff line number Diff line change @@ -487,6 +487,7 @@ affinity: {}
487
487
# Notify Push (Clientpush)
488
488
notifyPush :
489
489
enabled : false
490
+ autoSetup : false
490
491
491
492
replicaCount : 1
492
493
You can’t perform that action at this time.
0 commit comments