运行 Kustomize 测试时 Kubeval 失败
Kubeval Fails when running Kustomize test
我的 GitHub 操作测试失败,我 运行 这个命令针对我的 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
有什么办法可以消除这个错误吗?
您需要将一些选项传递给 kubeval 以忽略自定义资源。
要么用 --ignore-missing-schemas
忽略它们,要么用 --skip-kinds
列出要忽略的那些
我的 GitHub 操作测试失败,我 运行 这个命令针对我的 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
有什么办法可以消除这个错误吗?
您需要将一些选项传递给 kubeval 以忽略自定义资源。
要么用 --ignore-missing-schemas
忽略它们,要么用 --skip-kinds