Skip to content

Commit

Permalink
FIX volume backup service account
Browse files Browse the repository at this point in the history
Signed-off-by: John McCann Cunniff Jr <[email protected]>
  • Loading branch information
wabscale committed Jul 16, 2023
1 parent d73c010 commit 0a3a56d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions k8s/chart/templates/backup-volumes-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ metadata:
labels:
{{- include "chart.labels" . | nindent 4 }}
rules:
- apiGroups: [ "v1" ]
resources: [ "PersistentVolumeClaim" ]
verbs: [ "get", "list", "create" ]
- apiGroups: [ "" ]
resources: [ "PersistentVolumeClaim" ]
verbs: [ "get", "list", "create" ]
- apiGroups: ["batch", "extensions"]
resources: ["jobs"]
verbs: ["get", "list", "watch", "create", "delete"]
---

kind: RoleBinding
Expand Down Expand Up @@ -59,6 +62,7 @@ spec:
spec:
template:
spec:
serviceAccountName: {{ include "chart.fullname" . }}-volume-backup
{{- if and .Values.nodeSelector (not .Values.debug) }}
nodeSelector:
{{ .Values.nodeSelector | toYaml }}
Expand Down

0 comments on commit 0a3a56d

Please sign in to comment.