Comments (10)
@vincent-pli Thanks for raising this. I think there are a few points to be considered.
- What about when
TriggerBindings
andTriggerTemplates
are deleted? - Should we create reconcilers for
TriggerBindings
andTriggerTemplates
to notify theEventListener
of changes? Will validation restrict this since modifying one of these resources at a time will invalidate theEventListener
trigger?
from triggers.
@vtereso Thanks for your comments.
What about when TriggerBindings and TriggerTemplates are deleted?
This scenario is fatal error, should high light in the status of related EventListener
immediately. The pod
should keep running.
Should we create reconcilers for TriggerBindings and TriggerTemplates to notify the EventListener of changes? Will validation restrict this since modifying one of these resources at a time will invalidate the EventListener trigger?
I prefer let controller of EventListener
to watch TriggerBinding
and TriggerTemplate
.
In reconciler of EventListener
, we could:
- Add specific tag to related
TriggerBinding
andTriggerTemplate
, maybe the value of tag is the resource name of thatEventListener
- Watching
TriggerBinding
andTriggerTemplate
- If related
TriggerBinding
orTriggerTemplate
updated or deleted, the reconciler will triggered, then do validation and take action.
from triggers.
I think about the solution today, the implementation will be complex. is that worth π€ ?
from triggers.
I think about the solution today, the implementation will be complex. is that worth π€ ?
I think it makes sense to keep this issue open since it also falls under the umbrella of #35, but I agree it is non-trivial to implement.
from triggers.
Summary the solution here:
- In
reconcile
ofEventListener
add specific tag toTriggerTemplate
andTriggerBinding
. - Record the
Generation
ofTriggerTemplate
andTriggerBinding
to theEventListener.status.generations
- Watch the
TriggerTemplate
andTriggerBinding
, when update occurred, the relatedEventLister
(find by the label added in step 1) will enter thework queue
. - In
reconcile
, check theGeneration
betweenTriggerTemplate.Generation
andEventListener.status.generations
, if not same, take action (emit event or whatever)
from triggers.
Hi guys, the implements is not follow the upper design, more simple:
- Start watcher in the
pod
which created byEventListener
, the watcher will watch on relatedTriggerBinding
andTriggerTemplate
. - If any
Delete
andUpdate
occurred on relatedTriggerBinding
andTriggerTemplate
, a k8s event will be send and bind to relatedEventListener
from triggers.
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen
.
Mark the issue as fresh with /remove-lifecycle rotten
.
/close
Send feedback to tektoncd/plumbing.
from triggers.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
/lifecycle stale
Send feedback to tektoncd/plumbing.
from triggers.
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
/lifecycle rotten
Send feedback to tektoncd/plumbing.
from triggers.
@tekton-robot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue with/reopen
.
Mark the issue as fresh with/remove-lifecycle rotten
./close
Send feedback to tektoncd/plumbing.
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.
from triggers.
Related Issues (20)
- A slash character in a TriggerBinding value does not work. HOT 2
- Make all cel extensions available HOT 3
- Content-Type isn't send to Interceptor HOT 4
- Triggers called multiple times by EventListener or never called at all HOT 6
- Event listener restarts when under minimal stress HOT 78
- CEL overlay from headers error: couldn't unmarshal json from the TriggerTemplate: invalid character "X" after object key:value pair HOT 2
- Change Leader Election Configmap for Controllers and Webhook
- Event listener failing to run in OKD HOT 3
- getting started example error HOT 3
- Knative undefined: injection.Dynamic HOT 5
- Cant't creating EventListener HOT 3
- Allow Event Listener to Filter on Ingress URL HOT 2
- Trigger interceptor updated the certificate on every restart
- Knative undefined: injection.Dynamic HOT 6
- Example doesn't work well with both SSH and HTTPS enabled in Bitbucket HOT 4
- False negative during integration testing HOT 2
- webhook触εζεγ沑ζηζζ΅ζ°΄ηΊΏθΏθ‘ HOT 4
- Unable to run pipeline after webhook is triggered HOT 4
- TriggerTemplate `.spec.resourcetemplates` capitalization breaks Terraform `kubernetes_manifest` HOT 3
- `namespaceSelector` under `tiggerGroups` will not set `--is-multi-ns=true` on `EventListener` `Pod`. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from triggers.