0

我的 GitHub Action 测试失败,我在 kustomization.yaml 文件中运行此命令:

Run kubeval
ERR  - plant-simulator-deployment/templates/base/kustomization.yaml: Failed initalizing schema https://kubernetesjsonschema.dev/master-standalone-strict/kustomization-kustomize-v1beta1.json: Could not read schema from HTTP, response status is 404 Not Found
ERR  - plant-simulator-deployment/templates/dev/kustomization.yaml: Failed initalizing schema https://kubernetesjsonschema.dev/master-standalone-strict/kustomization-kustomize-v1beta1.json: Could not read schema from HTTP, response status is 404 Not Found
ERR  - plant-simulator-deployment/templates/production/kustomization.yaml: Failed initalizing schema https://kubernetesjsonschema.dev/master-standalone-strict/kustomization-kustomize-v1beta1.json: Could not read schema from HTTP, response status is 404 Not Found

这是我的 kustomization.yaml 文件中的内容:

apiVersion: kustomize.config.k8s.io/v1beta1

任何想法如何摆脱这个错误?

4

1 回答 1

1

您需要将一些选项传递给 kubeval 以忽略自定义资源。

要么全部忽略,--ignore-missing-schemas要么列出要忽略的--skip-kinds

来自官方文档

于 2021-01-25T21:53:29.927 回答