Closed elblivion closed 6 years ago
It looks like the HPA schema only includes v2alpha1
https://github.com/garethr/kubernetes-json-schema/blob/master/v1.7.8-standalone-strict/horizontalpodautoscaler.json#L7, but not v1
, which includes the reference to https://github.com/garethr/kubernetes-json-schema/blob/master/v1.7.8-standalone-strict/horizontalpodautoscalerspec.json
Mmmm, interesting. Sorry for taking a while to respond. Would you be able to provide a sanitised copy of horizontalPodAutoscaler.yaml
which fails? I'll add this to the test cases and try and work out the fix.
Ah, so I've spend some time debugging #57, and a) found it's the same problem and b) come to the same conclusion. I'll close this simply as a duplicate. The solution will be in regenerating the schemas to include the version skew, and to update kubeval
to use the schema based on kind AND version. Thanks for the details.
Hi,
Since about 10 days ago we are getting failures validating manifests which have not changed in weeks, specifically with horizontalPodAutoscaler:
This is a property which has indeed been dropped from the
master
schemas but kubeval is failing even when specifying our actual k8s version (e.g.--kubernetes-version 1.7.8
), which should accept it: https://github.com/garethr/kubernetes-json-schema/blob/master/v1.7.8-standalone-strict/horizontalpodautoscalerspec.json#L40