Skip to content

Commit

Permalink
Merge pull request #538 from PatrickSpies/fix/helm-rbac-cronjob
Browse files Browse the repository at this point in the history
fix(helm-chart): add missing rbac for cronjob-triggering
  • Loading branch information
MuneebAijaz committed Oct 10, 2023
2 parents cf0fa2c + 651320b commit 31402aa
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions deployments/kubernetes/chart/reloader/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,19 @@ rules:
- get
- update
- patch
- apiGroups:
- "batch"
resources:
- cronjobs
verbs:
- list
- get
- apiGroups:
- "batch"
resources:
- jobs
verbs:
- create
{{- if .Values.reloader.enableHA }}
- apiGroups:
- "coordination.k8s.io"
Expand Down
13 changes: 13 additions & 0 deletions deployments/kubernetes/chart/reloader/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,19 @@ rules:
- get
- update
- patch
- apiGroups:
- "batch"
resources:
- cronjobs
verbs:
- list
- get
- apiGroups:
- "batch"
resources:
- jobs
verbs:
- create
{{- if .Values.reloader.enableHA }}
- apiGroups:
- "coordination.k8s.io"
Expand Down

0 comments on commit 31402aa

Please sign in to comment.