From 2b1be5ccf86a56ed27c3c19f265897795e40b20a Mon Sep 17 00:00:00 2001 From: jangrui Date: Tue, 9 Jun 2026 17:17:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20kubeconform=20=E5=8A=A0=E8=BD=BD=20C?= =?UTF-8?q?RD=20schema=20=E4=BF=AE=E5=A4=8D=20cert-manager=20=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/pr-helm-chart.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-helm-chart.yml b/.github/workflows/pr-helm-chart.yml index 48afc044..b1c38d37 100644 --- a/.github/workflows/pr-helm-chart.yml +++ b/.github/workflows/pr-helm-chart.yml @@ -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"