Skip to content

Wishlist of CEL libraries #124490

Open
Open
@alculquicondor

Description

@alculquicondor

What would you like to be added?

This is just my wishlist. We need all of them, so no specific priority.

  • Regexes for object names, label keys, values, container names, etc. I think this one is already in the works?
  • validate the type metav1.Conditions
  • simple functions to check if conditions are true/false.
  • taints and tolerations
  • labelSelectors (we don't need this one, but it will probably be useful for some projects)
  • The ultimate validation: Pod templates, but worth starting with just containers :) Very useful for job CRDs.
  • ... (waiting for feedback)

Why is this needed?

As we were working on transitioning Kueue validation webhooks to CEL, we ended up with a lot of repeated validation lines. In some cases, validating something is so involved that we decided to keep most of the webhooks, otherwise readability would be significantly impacted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.sig/api-machineryCategorizes an issue or PR as relevant to SIG API Machinery.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions