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
Don't give operator permissions to create CRDs if not needed ,add if … #2326
base: main
Are you sure you want to change the base?
Conversation
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.
Hi @itsCheithanya, thank you for the PR. The code change looks good, but the CI is complaining about the long commit message subject:
{[1/1] Don't give operator permissions to create CRDs if not needed ,add if block to stop it}
Error: ERROR:CUSTOM: Please avoid long commit subjects (max: 75, found: 85)
https://github.com/cilium/tetragon/actions/runs/8657663468/job/23747314419?pr=2326
Could you amend the commit message and force push? You can put details in the commit message body.
@itsCheithanya It seems you pushed an extra empty commit instead of amending the previous one, so the CI still fails. You can fix it like this: git reset --hard HEAD~1 # delete the second commit
git commit --amend # now edit the commit message of the first commit
git push -f # you need to force push because you edited a commit When done please re-request review with this button Thanks! |
e60cb98
to
6f3a225
Compare
✅ Deploy Preview for tetragon ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for tetragon ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@itsCheithanya I see you merged the upstream main branch into your branch, could you rebase instead? Also your commit needs to be signed-off, see https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#dev-coo |
I marked this PR a draft for now, @itsCheithanya please click the "Ready for review" button when you fix the commits. |
Fixes issue #2226 Don't give operator permissions to create CRDs if not needed
Result of the change :
Reproduce the result:
create a local values.yaml file with CRD creation disabled:
and then run
and install Tetragon with using local Helm chart and your values.yaml file:
./contrib/localdev/install-tetragon.sh --values values.yaml
Then, check the operator ClusterRole using kubectl:kubectl get clusterrole tetragon-operator -oyaml