diff --git a/charts/nextcloud/Chart.yaml b/charts/nextcloud/Chart.yaml index 340d484624aab5cce30a2f79476c86a2f11bcc91..940c38ff289417ffe54c25439f129d39509cc5da 100644 --- a/charts/nextcloud/Chart.yaml +++ b/charts/nextcloud/Chart.yaml @@ -8,7 +8,7 @@ maintainers: - name: groundhog2k # This is the chart version. -version: "0.16.4" +version: "0.16.5" # This is the version number of the application being deployed. appVersion: "28.0.1-apache" diff --git a/charts/nextcloud/README.md b/charts/nextcloud/README.md index 2379f401252202e8c28656594e178903deedbcb8..cc6da5683cc84aa6c16add3e3978d60e1128e16d 100644 --- a/charts/nextcloud/README.md +++ b/charts/nextcloud/README.md @@ -1,6 +1,6 @@ # Nextcloud -   +   ## Changelog @@ -158,6 +158,8 @@ helm uninstall my-release | cronJobs[].tolerations | list | `[]` | Tolerations for pod assignment | | cronJobs[].nodeSelector | object | `{}` | Deployment node selector | | cronJobs[].resources | object | `{}` | Resource limits and requests | +| cronJobs[].annotations | object | `{}` | Additional cron job annotations | +| cronJobs[].labels | object | `{}` | Additional cron job labels | ## Service paramters diff --git a/charts/nextcloud/RELEASENOTES.md b/charts/nextcloud/RELEASENOTES.md index 73294f1d9f7ce1e7eaf47d321b1d2ea40e112b86..6ae7bb10be4ee2aa6a691b25940acaf3b2c4ea69 100644 --- a/charts/nextcloud/RELEASENOTES.md +++ b/charts/nextcloud/RELEASENOTES.md @@ -59,4 +59,5 @@ | 0.16.2 | 28.0.1-apache | Added optional ingressClassName and removed deprecated api support | | 0.16.3 | 28.0.1-apache | Refactored ingress configuration and added optional labels and pathType | | 0.16.4 | 28.0.1-apache | Added support for network policies and additional labels and annotations | +| 0.16.5 | 28.0.1-apache | Added additional labels and annotations or cron jobs | | | | | diff --git a/charts/nextcloud/templates/cronjobs.yaml b/charts/nextcloud/templates/cronjobs.yaml index efc2fa3b13f968eef38a1b1925f57b3ac9589177..40b445e38361da63800b3ffa3e4e08d45d8fb6bc 100644 --- a/charts/nextcloud/templates/cronjobs.yaml +++ b/charts/nextcloud/templates/cronjobs.yaml @@ -13,6 +13,13 @@ metadata: name: {{ $fullname }}-{{ $job.name }} labels: {{- $labels | nindent 4 }} + {{- with $job.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} + {{- with $job.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: successfulJobsHistoryLimit: 1 failedJobsHistoryLimit: 1 diff --git a/charts/nextcloud/templates/defaultcronjobs.yaml b/charts/nextcloud/templates/defaultcronjobs.yaml index c96f73ea8f1541b016bd9aef461ed626459a642f..5bc91b3a1302f3f29f6c605f43af6b814109c7f4 100644 --- a/charts/nextcloud/templates/defaultcronjobs.yaml +++ b/charts/nextcloud/templates/defaultcronjobs.yaml @@ -13,6 +13,13 @@ metadata: name: {{ $fullname }}-{{ $job.name }} labels: {{- $labels | nindent 4 }} + {{- with $job.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} + {{- with $job.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: successfulJobsHistoryLimit: 1 failedJobsHistoryLimit: 1 diff --git a/charts/nextcloud/values.yaml b/charts/nextcloud/values.yaml index 3d9c9ff2ca4681dd8e892228f58ce383ca5e03e5..bbc90a7cc8abfe9826768e70ac2d8a138b10d14e 100644 --- a/charts/nextcloud/values.yaml +++ b/charts/nextcloud/values.yaml @@ -39,6 +39,8 @@ defaultCronJobs: tolerations: [] affinity: {} resources: {} + annotations: {} + labels: {} ## Additional cron jobs cronJobs: {} @@ -49,6 +51,8 @@ cronJobs: {} # tolerations: [] # affinity: {} # resources: {} +# annotations: {} +# labels: {} ## Number of replicas replicas: 1