Skip to content

Commit

Permalink
we need a service account to be able to create the cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
smerle33 committed Nov 28, 2024
1 parent 7027764 commit f4e60a6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charts/geoipupdates/templates/cronjob.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "geoipupdate.fullname" . }}
labels:
{{ include "geoipupdate.labels" . | indent 4 }}
---
apiVersion: batch/v1
kind: CronJob
metadata:
Expand All @@ -11,6 +18,7 @@ spec:
spec:
template:
spec:
serviceAccountName: {{ include "geoipupdate.fullname" . }}
restartPolicy: Never
containers:
- name: geoipupdate
Expand Down

0 comments on commit f4e60a6

Please sign in to comment.