-
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
Fix Event ID and Source for Cloud Events without SelfLink #2676
Comments
Hi @afrittoli , After thinking about Source attribute, I am wondering if we can introduce new func in the I think this would be a fair alternative to imitate Renamed candidate: I would like to pick up this as my first contribution to Tekton. Or, would you plan for another semantics for ID and Source? Thanks, |
I have missed #2684 and its context, and turns out it it not really good first issue. Never mind😅 |
@tom24d sorry, I'm a bit late on replying to this. #2684 was an idea, but it would need to go with a TEP probably before going ahead, it's not something we've agreed upon yet. I like the idea of using an interface for solving the source issue, and I don't like the existing name of the interface I created :D so I wouldn't mind changing it. Emittable sounds like an interesting idea :) |
@afrittoli
Is it implying we want to identify the sources for the case of Tektons in multi-cluster? That sounds needed for me, but I assume we want to avoid having
How does this sound? |
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. |
/remove-lifecycle rotten |
@vdemeester: Reopened 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. |
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. |
Just ran into this on a Kubernetes 1.20.2 cluster and ran into this issue. It is causing cloudevent sending to fail with this error message:
What this means is that the Kubernetes API is returning an empty string for this call: There needs to be some sort of patch for this otherwise it fails very silently. I can submit a PR to change the source to something that will resolve, but its going to be a breaking change in some manner. |
SelfLink is deprecated and is causing an error on Kubernetes v1.20 clusters as outlined in the issue. This is a short term fix that would set the source field to a value that should match the current source URI without the value of the auto-populated selfLink field. Another field could be used for the source field without issue, but could cause concerns about backwards compatibility.
/remove-lifecycle rotten |
SelfLink is deprecated and is causing an error on Kubernetes v1.20 clusters as outlined in the issue. This is a short term fix that would set the source field to a value that should match the current source URI without the value of the auto-populated selfLink field. Another field could be used for the source field without issue, but could cause concerns about backwards compatibility.
Expected Behavior
Event ID and Source are setup according to https://github.com/cloudevents/spec/blob/master/spec.md#producer without using
Actual Behavior
Right now the ID is a newly generated uuid and source is
ObjectMeta.SelfLink
.That should be enough to ensure that that the source+id in globally unique, however
SelfLink
is deprecated, so it needs to be replaced.Steps to Reproduce the Problem
pipeline/pkg/reconciler/events/cloudevent/cloudevent.go
Line 102 in a6081f1
Additional Info
https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/20190711-remove-selflink.md#risks-and-mitigations
The text was updated successfully, but these errors were encountered: