Skip to content

Commit

Permalink
fix: grant worker service account permissions to read from events i…
Browse files Browse the repository at this point in the history
…n cluster (#285)

* add events perms to worker

* remove events api group
  • Loading branch information
jamiezieziula authored Jan 17, 2024
1 parent 43c7d9f commit 0e15d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/prefect-worker/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ metadata:
{{- end }}
rules:
- apiGroups: [""]
resources: ["pods", "pods/log", "pods/status"]
resources: ["events", "pods", "pods/log", "pods/status"]
verbs: ["get", "watch", "list"]
- apiGroups: ["batch"]
resources: ["jobs"]
verbs: [ "get", "list", "watch", "create", "update", "patch", "delete" ]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
{{- if .Values.role.extraPermissions }}
{{- include "common.tplvalues.render" (dict "value" .Values.role.extraPermissions "context" $) | nindent 0 }}
{{- end }}

0 comments on commit 0e15d40

Please sign in to comment.