undistro/cel-playground

Integrated with CEL cost system as in Kubernetes

cici37 opened this issue · 2 comments

cici37 commented

Feature Description

For resource constraint purpose, the existing CEL related features in Kubernetes has been integrated with CEL cost system with cost budget specified. Ref: https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#resource-use-by-validation-functions

It would be great if cel-playground could offer the similar power so that user would have a idea on the cost of the cel expression they are going to run.

Is your feature request related to a problem?

n/a

What alternatives have you considered?

A clear and concise description of any alternative solutions or features you've considered.

Additional Context

Add any other context or screenshots about the feature request here.

Hi @cici37
Thank you for the suggestion!
Your idea makes a lot of sense, and we appreciate your contribution.
We'll definitely consider implementing it. Any PR is welcome here!

knrc commented

FYI PR #43 adds the expression cost to the UI.