-
Notifications
You must be signed in to change notification settings - Fork 27
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 module reconciler not being able to watch for ConfigMaps error #179
Fix module reconciler not being able to watch for ConfigMaps error #179
Conversation
This fix adds the watch permission for ConfigMaps to the Module reconciler, in order to be able to successfully client.Get() the build Dockerfile ConfigMap. This client.Get() fails because the contoller-runtime client reads from its cache, instead of directly from the API server. The client needs the watch permission, in order to be able to build its cache. - kubernetes-sigs/controller-runtime#1156 Signed-off-by: Michail Resvanis <[email protected]>
✅ Deploy Preview for kubernetes-sigs-kmm ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Hi @mresvanis. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/lgtm |
@mresvanis we have an e2e test that is runs the build flow with configmap, and it has been passing successfully since the ConfigMap has been added. What has changed that we need the watch permission ( get and list previously was enough)? |
|
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mresvanis, yevgeny-shnaidman The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@yevgeny-shnaidman I apologize for the misunderstanding, this PR was about fixing the reconciler error regarding its client's cache ContextThe cause of this error is based on the internals of the cache of the Possible SolutionsIn order to resolve this reconciler cache
This PR's solutionThis PR followed option 2, but we can definitely revisit this if we would like to get rid of the Does this help? |
@mresvanis Thank you for explanation, very helpful |
…ubernetes-sigs#179) (kubernetes-sigs#225) This fix adds the watch permission for ConfigMaps to the Module reconciler, in order to be able to successfully client.Get() the build Dockerfile ConfigMap. This client.Get() fails because the contoller-runtime client reads from its cache, instead of directly from the API server. The client needs the watch permission, in order to be able to build its cache. - kubernetes-sigs/controller-runtime#1156 Signed-off-by: Michail Resvanis <[email protected]> Upstream-Commit: dedee81 Co-authored-by: Michail Resvanis <[email protected]>
This fix adds the
watch
permission forConfigMap
s to theModule
reconciler, in order to be able to successfullyclient.Get()
the build DockerfileConfigMap
. Thisclient.Get()
fails because the contoller-runtime client reads from its cache, instead of directly from the API server. The client needs thewatch
permission, in order to be able to build its cache.Signed-off-by: Michail Resvanis [email protected]