mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-08 22:21:09 +00:00
fix(ci): kubeconform 加载 CRD schema 修复 cert-manager 校验失败
ingress-tls-certmanager 场景渲染出 cert-manager 的 Certificate CRD, kubeconform 默认仅内置原生 k8s schema,遇到 CRD 报 "could not find schema"。 追加 -schema-location 从 datreeio/CRDs-catalog 远程加载 CRD schema, 覆盖整个 catalog 收录的 CRD 资源,9 场景矩阵无需差异化处理。 Signed-off-by: jangrui <admin@jangrui.com>
This commit is contained in:
parent
0605357316
commit
2b1be5ccf8
1 changed files with 1 additions and 1 deletions
2
.github/workflows/pr-helm-chart.yml
vendored
2
.github/workflows/pr-helm-chart.yml
vendored
|
|
@ -149,4 +149,4 @@ jobs:
|
|||
uses: docker://ghcr.io/yannh/kubeconform:latest
|
||||
with:
|
||||
entrypoint: '/kubeconform'
|
||||
args: "-strict -summary -output text charts/skillhub/rendered.yaml"
|
||||
args: "-strict -summary -output text -schema-location default -schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' charts/skillhub/rendered.yaml"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue