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

Viewing K8s Agent events errors due to missing permissions #507

Closed
rmb938 opened this issue Feb 1, 2021 · 1 comment
Closed

Viewing K8s Agent events errors due to missing permissions #507

rmb938 opened this issue Feb 1, 2021 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rmb938
Copy link

rmb938 commented Feb 1, 2021

Describe the bug

When viewing a kubernetes agent events in the UI the jenkins logs error with the following:

io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://kubernetes.default.svc.cluster.local/api/v1/namespaces/jenkins/events?fieldSelector=involvedObject.name%3Djenkins-slave-h5c82%2CinvolvedObject.uid%3D8de10866-a100-4d23-b951-325fed7c30a8%2CinvolvedObject.namespace%3Djenkins. Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. events is forbidden: User "system:serviceaccount:jenkins:jenkins-operator-hcc-dp" cannot list resource "events" in API group "" in the namespace "jenkins".

To Reproduce

Configure the kubernetes cloud agent, run a job using the agent and look in the agent events.

Kubernetes version: 1.17.8
Jenkins Operator version: v0.5.0

Add error logs about the problem here (operator logs and Kubernetes events).

@rmb938 rmb938 added the bug Something isn't working label Feb 1, 2021
@SylwiaBrant SylwiaBrant self-assigned this Feb 12, 2021
SylwiaBrant added a commit to SylwiaBrant/kubernetes-operator that referenced this issue Feb 12, 2021
Added missing permissions for listing events by Jenkins
SylwiaBrant added a commit that referenced this issue Feb 12, 2021
Added missing permissions for listing events by Jenkins
@prryb prryb added this to the 0.6.0 milestone May 4, 2021
@KorusMateusz
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants