Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using CRD validation rules for field validation #1156

Open
cici37 opened this issue Sep 24, 2024 · 0 comments
Open

Using CRD validation rules for field validation #1156

cici37 opened this issue Sep 24, 2024 · 0 comments
Assignees

Comments

@cici37
Copy link

cici37 commented Sep 24, 2024

Hi prometheus community,

CRD, as the most popular extension point of Kubernetes, is used heavily in prometheus project. I would like to mention that Kubernetes is now supporting CRD validation rules for more complicated field validation logic.

It would help not only shifting the validation check left to catch the issue early but also significantly reduced the usage of webhooks(even possibly replace the Webhook if the validation logic not involve external dependencies). Additional, it is also supported in kubebuild with a simple marker like // +kubebuilder:validation:XValidation:rule="the validation logic".

I am writing to see if the community would be interested in this feature and please feel free to share the thoughts. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants