kubernetes-sigs/kubectl-validate

recursive schemas not supported

Open

#18 创建于 2023年5月4日

在 GitHub 查看
 (6 评论) (1 反应) (1 负责人)Go (56 fork)auto 404
good first issue

仓库指标

Star
 (268 star)
PR 合并指标
 (PR 指标待抓取)

描述

The schema validator used by Kubernetes server and kubectl-validate does not support recursively defined schemas. This can be fixed but it would be a fairly big modification.

CRDs cannot be recursive, so this is not a concern for them. There may be some native types that have a recursive schema. One example of this is CustomResourceDefinition itself. n this single case, we workaround this by using the handwritten validation code for CRDs since they are so common.

In general, we should detect and block validation of recursive schemas.

贡献者指南