Skip to content

events is forbidden: User "system:serviceaccount:actions-runner-system:actions-runner-controller-gha-rs-controller" cannot create resource "events" in API group "" in the namespace "actions-runner-system"' (will not retry!) #3857

Open
@julien-michaud

Description

Checks

Controller Version

0.9.4

Deployment Method

Helm

Checks

  • This isn't a question or user support case (For Q&A and community support, go to Discussions).
  • I've read the Changelog before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes

To Reproduce

use the 0.9.4 version of the controller

Describe the bug

getting this message from the controller

'events is forbidden: User "system:serviceaccount:actions-runner-system:actions-runner-controller-gha-rs-controller" cannot create resource "events" in API group "" in the namespace "actions-runner-system"' (will not retry!)

Describe the expected behavior

no error message

Additional Context

the event resource is not defined in the Helm chart provided.

Controller Logs

I1218 13:17:36.921721       1 leaderelection.go:250] attempting to acquire leader lease actions-runner-system/actions-runner-controller-gha-rs-controller...
I1218 13:17:39.201879       1 leaderelection.go:250] attempting to acquire leader lease actions-runner-system/actions-runner-controller-gha-rs-controller...
I1218 13:17:40.529987       1 leaderelection.go:250] attempting to acquire leader lease actions-runner-system/actions-runner-controller-gha-rs-controller...
I1218 13:17:52.294299       1 leaderelection.go:260] successfully acquired lease actions-runner-system/actions-runner-controller-gha-rs-controller
E1218 13:17:52.296139       1 event.go:280] Server rejected event '&v1.Event{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"actions-runner-controller-gha-rs-controller.181247e8f11d6bba", GenerateName:"", Namespace:"actions-runner-system", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletionTimestamp:<nil>, DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ManagedFields:[]v1.ManagedFieldsEntry(nil)}, InvolvedObject:v1.ObjectReference{Kind:"Lease", Namespace:"actions-runner-system", Name:"actions-runner-controller-gha-rs-controller", UID:"d386b57d-3538-417a-a174-e0e49d2302ca", APIVersion:"coordination.k8s.io/v1", ResourceVersion:"923943137", FieldPath:""}, Reason:"LeaderElection", Message:"actions-runner-controller-gha-rs-controller-75ccdfc645-hw5h9_f722a5ba-9863-4207-8037-47451bc76a57 became leader", Source:v1.EventSource{Component:"actions-runner-controller-gha-rs-controller-75ccdfc645-hw5h9_f722a5ba-9863-4207-8037-47451bc76a57", Host:""}, FirstTimestamp:time.Date(2024, time.December, 18, 13, 17, 52, 294284218, time.Local), LastTimestamp:time.Date(2024, time.December, 18, 13, 17, 52, 294284218, time.Local), Count:1, Type:"Normal", EventTime:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), Series:(*v1.EventSeries)(nil), Action:"", Related:(*v1.ObjectReference)(nil), ReportingController:"actions-runner-controller-gha-rs-controller-75ccdfc645-hw5h9_f722a5ba-9863-4207-8037-47451bc76a57", ReportingInstance:""}': 'events is forbidden: User "system:serviceaccount:actions-runner-system:actions-runner-controller-gha-rs-controller" cannot create resource "events" in API group "" in the namespace "actions-runner-system"' (will not retry!)
I1218 13:17:36.921721       1 leaderelection.go:250] attempting to acquire leader lease actions-runner-system/actions-runner-controller-gha-rs-controller...
I1218 13:17:39.201879       1 leaderelection.go:250] attempting to acquire leader lease actions-runner-system/actions-runner-controller-gha-rs-controller...
I1218 13:17:40.529987       1 leaderelection.go:250] attempting to acquire leader lease actions-runner-system/actions-runner-controller-gha-rs-controller...

Runner Pod Logs

/

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggha-runner-scale-setRelated to the gha-runner-scale-set modeneeds triageRequires review from the maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions