Skip to content

Commit

Permalink
[bitnami/matomo] add serviceAccountName parameter to CronJob pods (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaweinreich authored Sep 4, 2024
1 parent f3e72bb commit dafec18
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
8 changes: 6 additions & 2 deletions bitnami/matomo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## 8.0.10 (2024-08-22)
## 8.0.11 (2024-09-04)

* [bitnami/matomo] Release 8.0.10 ([#28972](https://github.com/bitnami/charts/pull/28972))
* [bitnami/matomo] add serviceAccountName parameter to CronJob pods ([#29182](https://github.com/bitnami/charts/pull/29182))

## <small>8.0.10 (2024-08-22)</small>

* [bitnami/matomo] Release 8.0.10 (#28972) ([890f055](https://github.com/bitnami/charts/commit/890f055a0c00ef6889c34e25108ecab0ab2c86e3)), closes [#28972](https://github.com/bitnami/charts/issues/28972)

## <small>8.0.9 (2024-08-15)</small>

Expand Down
2 changes: 1 addition & 1 deletion bitnami/matomo/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ maintainers:
name: matomo
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/matomo
version: 8.0.10
version: 8.0.11
4 changes: 4 additions & 0 deletions bitnami/matomo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ helm install my-release --set persistence.existingClaim=PVC_NAME oci://REGISTRY_
| -------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ---------------- |
| `cronjobs.taskScheduler.enabled` | Whether to enable scheduled mail-to-task CronJob | `true` |
| `cronjobs.taskScheduler.schedule` | Kubernetes CronJob schedule | `*/5 * * * *` |
| `cronjobs.taskScheduler.serviceAccountName` | Attach serviceAccountName to the pod of the CronJob | `""` |
| `cronjobs.taskScheduler.automountServiceAccountToken` | Mount Service Account token in pod of the CronJob | `true` |
| `cronjobs.taskScheduler.suspend` | Whether to create suspended CronJob | `false` |
| `cronjobs.taskScheduler.affinity` | Affinity for CronJob pod assignment | `{}` |
| `cronjobs.taskScheduler.nodeSelector` | Node labels for CronJob pod assignment. Evaluated as a template. | `{}` |
Expand Down Expand Up @@ -410,6 +412,8 @@ helm install my-release --set persistence.existingClaim=PVC_NAME oci://REGISTRY_
| `cronjobs.taskScheduler.extraEnvVars` | Extra environment variables for the taskScheduler CronJob | `[]` |
| `cronjobs.archive.enabled` | Whether to enable scheduled mail-to-task CronJob | `true` |
| `cronjobs.archive.schedule` | Kubernetes CronJob schedule | `*/5 * * * *` |
| `cronjobs.archive.serviceAccountName` | Attach serviceAccountName to the pod of the CronJob | `""` |
| `cronjobs.archive.automountServiceAccountToken` | Mount Service Account token in pod of the CronJob | `true` |
| `cronjobs.archive.suspend` | Whether to create suspended CronJob | `false` |
| `cronjobs.archive.affinity` | Affinity for CronJob pod assignment | `{}` |
| `cronjobs.archive.tolerations` | Tolerations for CronJob pod assignment | `[]` |
Expand Down
8 changes: 8 additions & 0 deletions bitnami/matomo/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.cronjobs.archive.podAnnotations "context" $ ) | nindent 12 }}
{{- end }}
spec:
{{- if .Values.cronjobs.archive.serviceAccountName }}
serviceAccountName: {{ .Values.cronjobs.archive.serviceAccountName | quote }}
{{- end }}
automountServiceAccountToken: {{ .Values.cronjobs.archive.automountServiceAccountToken }}
{{- include "matomo.imagePullSecrets" . | nindent 10 }}
restartPolicy: OnFailure
{{- if .Values.cronjobs.archive.affinity }}
Expand Down Expand Up @@ -205,6 +209,10 @@ spec:
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.cronjobs.taskScheduler.podAnnotations "context" $ ) | nindent 12 }}
{{- end }}
spec:
{{- if .Values.cronjobs.taskScheduler.serviceAccountName }}
serviceAccountName: {{ .Values.cronjobs.taskScheduler.serviceAccountName | quote }}
{{- end }}
automountServiceAccountToken: {{ .Values.cronjobs.taskScheduler.automountServiceAccountToken }}
{{- include "matomo.imagePullSecrets" . | nindent 10 }}
{{- if .Values.cronjobs.taskScheduler.affinity }}
affinity: {{- include "common.tplvalues.render" (dict "value" .Values.cronjobs.taskScheduler.affinity "context" $) | nindent 12 }}
Expand Down
12 changes: 12 additions & 0 deletions bitnami/matomo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,12 @@ cronjobs:
## @param cronjobs.taskScheduler.schedule Kubernetes CronJob schedule
##
schedule: "*/5 * * * *"
## @param cronjobs.taskScheduler.serviceAccountName Attach serviceAccountName to the pod of the CronJob
##
serviceAccountName: ""
## @param cronjobs.taskScheduler.automountServiceAccountToken Mount Service Account token in pod of the CronJob
##
automountServiceAccountToken: true
## @param cronjobs.taskScheduler.suspend Whether to create suspended CronJob
##
suspend: false
Expand Down Expand Up @@ -1062,6 +1068,12 @@ cronjobs:
## @param cronjobs.archive.schedule Kubernetes CronJob schedule
##
schedule: "*/5 * * * *"
## @param cronjobs.archive.serviceAccountName Attach serviceAccountName to the pod of the CronJob
##
serviceAccountName: ""
## @param cronjobs.archive.automountServiceAccountToken Mount Service Account token in pod of the CronJob
##
automountServiceAccountToken: true
## @param cronjobs.archive.suspend Whether to create suspended CronJob
##
suspend: false
Expand Down

0 comments on commit dafec18

Please sign in to comment.