File tree Expand file tree Collapse file tree 4 files changed +34
-0
lines changed
Expand file tree Collapse file tree 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:
137137 {{- end }}
138138 volumeMounts :
139139 {{- 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 }}
140146 {{- range $hook, $shell := .Values.nextcloud.hooks }}
141147 {{- if $shell }}
142148 - name : nextcloud-hooks
@@ -361,6 +367,15 @@ spec:
361367 configMap :
362368 name : {{ template "nextcloud.fullname" . }}-nginxconfig
363369 {{- 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 }}
364379 {{- if not (values .Values.nextcloud.hooks | compact | empty) }}
365380 - name : nextcloud-hooks
366381 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: {}
487487# Notify Push (Clientpush)
488488notifyPush :
489489 enabled : false
490+ autoSetup : false
490491
491492 replicaCount : 1
492493
You can’t perform that action at this time.
0 commit comments