You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 14, 2025. It is now read-only.
* fix(cronjob): Make command of cronjob container configurable (nextcloud#708)
This allows to run it without root permissions by using a while-true-script
over cron (cron needs root permissions for the impersonation).
Signed-off-by: Martin Kirchner <martin.kirchner@cas.de>
Co-authored-by: Martin Kirchner <martin.kirchner@cas.de>
* fix: Extract labels to helper template nextcloud#707
Signed-off-by: Martin Kirchner <martin.kirchner@cas.de>
* fix(nextcloud): Reorder definitions of main and cronjob container nextcloud#710
In a next step we could extract the common parts of the two containers
to a helper template.
Signed-off-by: Martin Kirchner <martin.kirchner@cas.de>
---------
Signed-off-by: Martin Kirchner <martin.kirchner@cas.de>
Co-authored-by: MartinKirchner <17732361+MartinKirchner@users.noreply.github.com>
Co-authored-by: Martin Kirchner <martin.kirchner@cas.de>
Copy file name to clipboardExpand all lines: charts/nextcloud/templates/_helpers.tpl
+34Lines changed: 34 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -398,3 +398,37 @@ Create volume mounts for the nextcloud container as well as the cron sidecar con
398
398
subPath: {{ $key }}
399
399
{{- end }}
400
400
{{- end -}}
401
+
402
+
403
+
{{/*
404
+
Create match labels for the nextcloud container as well as the cronjob container.
405
+
Parameters:
406
+
- component (optional): app/cronjob/...
407
+
- rootContext: $ (Inside a template the scope changes, i.e. you cannot access variables of the parent context or its parents.
408
+
Unfortunately this is also the case for the root context, this means .Values, .Release, .Chart cannot be accessed.
409
+
However the other templates need values from the objects. That's why the caller has to pass on reference to the root context which this template in turn passes on.)
410
+
*/}}
411
+
{{- define"nextcloud.selectorLabels" -}}
412
+
app.kubernetes.io/name: {{ include "nextcloud.name".rootContext }}
Create match labels for the nextcloud deployment as well as the cronjob.
421
+
Parameters:
422
+
- component (optional): app/cronjob/...
423
+
- rootContext: $ (Inside a template the scope changes, i.e. you cannot access variables of the parent context or its parents.
424
+
Unfortunately this is also the case for the root context, this means .Values, .Release, .Chart cannot be accessed.
425
+
However the other templates need values from the objects. That's why the caller has to pass on reference to the root context which this template in turn passes on.)
426
+
*/}}
427
+
{{- define"nextcloud.labels" -}}
428
+
{{ include "nextcloud.selectorLabels" ( dict "component".component"rootContext".rootContext) }}
429
+
helm.sh/chart: {{ include "nextcloud.chart".rootContext }}
0 commit comments