Skip to content

Commit da80a8d

Browse files
authored
fix(nextcloud): add labels to pod template #779
solve #773 Signed-off-by: Txomin Itoiz <[email protected]>
1 parent 67c5552 commit da80a8d

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
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: 8.1.0
3+
version: 8.2.0
44
# renovate: image=docker.io/library/nextcloud
55
appVersion: 32.0.0
66
description: A file sharing server that puts the control and security of your own data back into your hands.

charts/nextcloud/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ The following table lists the configurable parameters of the nextcloud chart and
214214
| `cronjob.cronjob.successfulJobsHistoryLimit` | Number of successful jobs to keep in history | `3` |
215215
| `cronjob.cronjob.failedJobsHistoryLimit` | Number of failed jobs to keep in history | `5` |
216216
| `cronjob.cronjob.labels` | An array of service labels | `nil` |
217+
| `cronjob.cronjob.podLabels` | An array of service labels | `nil` |
217218
| `cronjob.cronjob.annotations` | An array of service annotations | `nil` |
218219
| `cronjob.cronjob.backoffLimit` | The number of retries before marking a job as failed | `1` |
219220
| `cronjob.cronjob.affinity` | The affinity settings for the cron job | `{}` |

charts/nextcloud/templates/cronjob.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ spec:
2929
spec:
3030
backoffLimit: {{ .backoffLimit }}
3131
template:
32+
metadata:
33+
labels:
34+
{{- with (mergeOverwrite (dict) $.Values.podLabels .podLabels) }}
35+
{{- toYaml . | nindent 12 }}
36+
{{- end }}
3237
spec:
3338
restartPolicy: Never
3439
containers:

charts/nextcloud/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,10 @@ cronjob:
636636
schedule: "*/5 * * * *"
637637
successfulJobsHistoryLimit: 3
638638
failedJobsHistoryLimit: 5
639+
# -- Additional labels for cronjob
639640
labels: {}
641+
# -- Additional labels for cronjob pod
642+
podLabels: {}
640643
annotations: {}
641644
backoffLimit: 1
642645
affinity: {}

0 commit comments

Comments
 (0)