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

generating from CRD supports kubernetes 1.23 feature: validation rules #22

Open
amyXia1994 opened this issue Jul 21, 2022 · 0 comments
Open

Comments

@amyXia1994
Copy link
Contributor

Enhancement

Since k8s v1.23, the validation rules are introduced to use CEL for expressing validation rules. This feature is to enhance the structrual schema validation in CRD via the vendor extension x-kubernetes-validations

kcl openapi needs to support this feature:

  1. augment the KCL OpenAPI spec
  2. support generate corresponding code

ref: https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#validation-rules

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

1 participant