From 7033e299cd3ef5af8721aa3efc55de8664dbf259 Mon Sep 17 00:00:00 2001 From: Nikola Jokic Date: Mon, 24 Mar 2025 15:10:47 +0100 Subject: [PATCH] Add events role permission to leader_election_role (#3988) --- .../templates/leader_election_role.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/gha-runner-scale-set-controller/templates/leader_election_role.yaml b/charts/gha-runner-scale-set-controller/templates/leader_election_role.yaml index 02e0b415..236a51fc 100644 --- a/charts/gha-runner-scale-set-controller/templates/leader_election_role.yaml +++ b/charts/gha-runner-scale-set-controller/templates/leader_election_role.yaml @@ -9,4 +9,7 @@ rules: - apiGroups: ["coordination.k8s.io"] resources: ["leases"] verbs: ["get", "watch", "list", "delete", "update", "create"] -{{- end }} \ No newline at end of file + - apiGroups: [""] + resources: ["events"] + verbs: ["create", "patch"] +{{- end }}