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

Fixed casing typo on ClusterRole #1

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

Conversation

juanlu-sanz
Copy link

Issue:

When running the cron configuration, it appears to deploy correctly on 4.12.23 but the cron job fails when the date comes, with error

╰─ oc logs cronjob-scaler-scale-down-28162639-2lq88
Error from server (Forbidden): deployments.apps "my-deployment" is forbidden: User "system:serviceaccount:mynamespace:cronjob-scaler" cannot get resource "deployments" in API group "apps" in the namespace "mynamespace"

and upon closer inspection it appears the ClusterRole definition has the resources in Pascal Casing, and oc describe clusterrole.rbac and oc api-resources show all of them in lowercase.

This PR fixes this, as my deployment scales as expected.

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.

1 participant