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

Fix module reconciler not being able to watch for ConfigMaps error #225

Conversation

qbarrand
Copy link
Member

@qbarrand qbarrand commented Dec 7, 2022

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.

Signed-off-by: Michail Resvanis [email protected]

…h-ecosystem-edge#179)

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
@openshift-ci
Copy link

openshift-ci bot commented Dec 7, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qbarrand

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Dec 7, 2022
@enriquebelarte
Copy link
Collaborator

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Dec 7, 2022
@openshift-merge-robot openshift-merge-robot merged commit c85628e into rh-ecosystem-edge:main Dec 7, 2022
@qbarrand qbarrand deleted the cp-dedee81d338667c32f9bee2b26fc439ca022c391 branch December 7, 2022 13:15
github-actions bot pushed a commit that referenced this pull request Jan 6, 2023
mresvanis pushed a commit that referenced this pull request Jan 6, 2023
openshift-merge-robot pushed a commit that referenced this pull request Jan 6, 2023
qbarrand pushed a commit to qbarrand/rh-kernel-module-management that referenced this pull request Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants