Skip to content

Common Expression Language validation rules to reduce custom logic #2183

@hiddeco

Description

@hiddeco

In Kubernetes 1.29, Common Expression Language validation rules were promoted to GA.

Using CEL, writing complex validation rules without needing validation webhooks and/or custom Go code is possible using the +kubebuilder:validation:XValidation marker. As this can potentially reduce the custom logic we have at the moment (but not all), it may be worth looking into.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/api-serverAffects Kargo's API serverarea/kubernetes-webhooksAffects the server that handles Kargo-specific validations on behalf of the Kubernetes API serverkind/refactorNon-functional changes to implementation detailspriority/lowLow commitment from maintainers; progress is likely to be community-driven

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions