argoproj / argo-events

Event-driven Automation Framework for Kubernetes
https://argoproj.github.io/argo-events/
Apache License 2.0
2.35k stars 729 forks source link

lua script support in resource EventSource #1445

Open ciiiii opened 2 years ago

ciiiii commented 2 years ago

Is your feature request related to a problem? Please describe. When I define resource EventSource, I always want to judge the target resource status or some other fields, LabelSelecor and FieldSelector is too limited.

Describe the solution you'd like We can use lua as DSL and Unstructured object of resource as paremeter to judge weather current resource is the desired status, just like what argo gitops-engine did.

Describe alternatives you've considered More flexible expression ability.

Additional context This is a similar example.

image

Message from the maintainers:

If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

wmcnamee-coreweave commented 1 month ago

resurrecting this, would love to see this implemented