-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Repeated error messages when a Cloud Events sink is configured #5683
Comments
the same issue but with |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
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. |
Expected Behavior
Absence of error logs.
Actual Behavior
The following error message is produced every time an event is produced:
Steps to Reproduce the Problem
TaskRun
and observe the controller logs.Additional Info
Kubernetes version: 1.23
Output of
kubectl version
:Tekton Pipeline version:
Output of
tkn version
orkubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'
I suspect this happens due to #3862, when a Cloud Events Sink is configured but the experimental cloud events for
Run
objects are disabled (default).From what I could see, the
cache.ToContext
function is only called fromReconcileKind
forRun
objects. However,SendCloudEventWithRetries
is trying to retrieve this cache client, which fails if the object being processed is not aRun
.I assume one of the fixes would be to store the cache client in the context of every kind reconciler, retrieving it conditionally to the kind being checked or maybe just removing the log error, but I'm afraid I'm not familiar with the code to decide which one should make it.
Thanks in advance!
The text was updated successfully, but these errors were encountered: