Skip to content

Commit

Permalink
Feat: add service account names for cronjobs (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
nishaero authored Jul 22, 2022
1 parent 2418ba8 commit 0bc212d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sentry/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: sentry
description: A Helm chart for Kubernetes
type: application
version: 15.0.1
version: 15.0.2
appVersion: 22.6.0
dependencies:
- name: memcached
Expand Down
3 changes: 3 additions & 0 deletions sentry/templates/cronjob-sentry-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,7 @@ spec:
{{- if .Values.sentry.cleanup.priorityClassName }}
priorityClassName: "{{ .Values.sentry.cleanup.priorityClassName }}"
{{- end }}
{{- if .Values.sentry.cleanup.serviceAccount }}
serviceAccountName: {{ .Values.sentry.cleanup.serviceAccount.name }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions sentry/templates/cronjob-snuba-cleanup-errors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,7 @@ spec:
{{- if .Values.snuba.cleanupErrors.priorityClassName }}
priorityClassName: "{{ .Values.snuba.cleanupErrors.priorityClassName }}"
{{- end }}
{{- if .Values.snuba.cleanupErrors.serviceAccount }}
serviceAccountName: {{ .Values.snuba.cleanupErrors.serviceAccount.name }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions sentry/templates/cronjob-snuba-cleanup-transactions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,7 @@ spec:
{{- if .Values.snuba.cleanupTransactions.priorityClassName }}
priorityClassName: "{{ .Values.snuba.cleanupTransactions.priorityClassName }}"
{{- end }}
{{- if .Values.snuba.cleanupTransactions.serviceAccount }}
serviceAccountName: {{ .Values.snuba.cleanupTransactions.serviceAccount.name }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions sentry/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ sentry:
days: 90
sidecars: []
volumes: []
serviceAccount: {}

snuba:
api:
Expand Down Expand Up @@ -408,6 +409,7 @@ snuba:
schedule: "0 * * * *"
sidecars: []
volumes: []
serviceAccount: {}

cleanupTransactions:
activeDeadlineSeconds: 100
Expand All @@ -416,6 +418,7 @@ snuba:
schedule: "0 * * * *"
sidecars: []
volumes: []
serviceAccount: {}

hooks:
enabled: true
Expand Down

0 comments on commit 0bc212d

Please sign in to comment.