-
Notifications
You must be signed in to change notification settings - Fork 89
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
Make cronJob work without a service account #320
base: master
Are you sure you want to change the base?
Conversation
There's a check failing that has nothing to do with my changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the problem with the CI workflow is infrastructure (configuration) related. I don't have access to the runners these jobs are running on, but given the error message (missing versions of dynamic glibc) I assume the runner is perhaps on CentOS 7 while the new oc
binary was built with RHEL9 in mind --- hence the newer versions of glibc required. Can you guys take a look, @rasheedamir? This is affecting ALL builds. 😅
{{- if $.Values.rbac.enabled }} | ||
{{- if $.Values.rbac.serviceAccount.enabled }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we still keep the if $.Values.rbac.enabled
line? If RBAC for this chart has been completely disabled, it shouldn't in theory matter if rbac.serviceAccount.enabled
is true, is my thinking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same goes for the deployment, then.
I didn't check if there are other parts as well, which would be equally affected.
I'm just building on your reasoning for the deployment :)
@TomyLobo I just rebased the PR (pull with |
@rasheedamir validation successful` |
When using a cronJob without configuring a serviceAccount, I get the following error under "Events" in "kubectl describe":
This PR fixes that by evaluating
rbac.serviceAccount.enabled
instead ofrbac.enabled
, bringing it into alignment with deployment.yaml.