Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Allow events events api #3507

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

dennybaa
Copy link

@dennybaa dennybaa commented May 8, 2024

ystem", 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:"arc-system", Name:"gha-rs-controller", UID:"7df82bf8-2f40-464f-bfaa-02055d3379b0", APIVersion:"coordination.k8s.io/v1", ResourceVersion:"55357371", FieldPath:""}, Reason:"LeaderElection", Message:"gha-rs-controller-c58d4454d-dp4qv_48434b5e-ad35-43e3-8732-1a18fb5240f1 became leader", Source:v1.EventSource{Component:"gha-rs-controller-c58d4454d-dp4qv_48434b5e-ad35-43e3-8732-1a18fb5240f1", Host:""}, FirstTimestamp:time.Date(2024, time.May, 8, 17, 26, 57, 872363492, time.Local), LastTimestamp:time.Date(2024, time.May, 8, 17, 26, 57, 872363492, 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:"gha-rs-controller-c58d4454d-dp4qv_48434b5e-ad35-43e3-8732-1a18fb5240f1", ReportingInstance:""}': 'events is forbidden: User "system:serviceaccount:arc-system:gha-rs-controller" cannot create resource "events" in API group "" in the namespace "arc-system"' (will not retry!)

@dennybaa dennybaa changed the title Update manager_cluster_role.yaml [fix] Allow events events api May 8, 2024
@nikola-jokic
Copy link
Member

Hey @dennybaa,

I'm not sure why would you need event permission for the gha-runner-scale-set? There is no gha-runner-scale-set controller that emits events.

@dennybaa
Copy link
Author

dennybaa commented May 13, 2024

@nikola-jokic Hello. That's very odd. Because I've gotten this error message, after I've added the above changes it's disappeared. This is output from its logs 😕 I can only admit, that somehow during errors with the application there was something that made actually the pod emit events... In this case the issue is not legit.

@nikola-jokic
Copy link
Member

Maybe something went wrong with the installation 😕
Can you please provide steps to reproduce this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants