kubeval
kubeval copied to clipboard
error when attempting to lint poddisruption budget
ERR - tmp/kubernetes.yml: Failed initializing schema https://kubernetesjsonschema.dev/master-standalone/poddisruptionbudget-policy-v1.json: Could not read schema from HTTP, response status is 404 Not Found Error: Process completed with exit code 1.
-
Experienced this issue as well, kubeval expects deprecated
apiVersion: policy/v1beta1
as opposed to currentapiVersion: policy/v1
. -
If people use older version, they'll see this warning when they apply manifests with kubectl to newer cluster versions.
Warning: policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget