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: add cluster roles to list and monitor jobs and cronjobs #622

Merged
merged 2 commits into from
Jul 17, 2023

Conversation

ylmrx
Copy link
Contributor

@ylmrx ylmrx commented Jul 17, 2023

This PR fixes #

Checklist

  • I have signed the CLA
  • I have updated/added any relevant documentation

Description

What's the goal of this PR?

We get many error logs reporting that the controller can't get/list jobs and cronjobs compute
tasks.

 goldilocks-controller-7c9cb58864-pndwb goldilocks E0717 13:43:19.711591       1 controller.go:229]  "msg"="Error retrieving parent object" "error"="jobs.batch is forbidden: User \"system:serviceaccount:[redacted]-system:goldilocks-controller\" cannot list resource \"jobs\" in API group \"batch\" in the namespace \"kube-system\"" "v1"="jobs"

What changes did you make?

add the list/get/watch permission for the controller clusterrole

What alternative solution should we consider, if any?

idk

@CLAassistant
Copy link

CLAassistant commented Jul 17, 2023

CLA assistant check
All committers have signed the CLA.

@nerzhul
Copy link

nerzhul commented Jul 17, 2023

Thanks for this PR, i need this too

@sudermanjr sudermanjr enabled auto-merge (squash) July 17, 2023 15:04
@sudermanjr sudermanjr merged commit b470d08 into FairwindsOps:master Jul 17, 2023
mikutas added a commit to mikutas/fairwinds-charts that referenced this pull request Aug 31, 2023
sudermanjr added a commit to FairwindsOps/charts that referenced this pull request Sep 5, 2023
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.

4 participants