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

Simplify the permissions for the certificate generation #398

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

0sewa0
Copy link
Contributor

@0sewa0 0sewa0 commented Nov 30, 2021

the client.Client uses a cache in the background that needs clusterwide list/watch permissions for resources that we get via client.Get. (why? I don't know, its an issue in the controller-runtime)
Cache is not needed for the certificate controller because it only runs every 3 hours (on success).
So this introduces an apiReader to be used for getting the resources. (the client.Client is still needed for updating resources)

@0sewa0 0sewa0 merged commit e7399dc into master Dec 2, 2021
@0sewa0 0sewa0 deleted the refactor/cluster-roles-for-webhook-config branch December 2, 2021 09:21
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.

2 participants