Closed brendanjryan closed 5 years ago
Thanks. I'll regenerate the master schemas now and test out.
Confirmed this should be fixed now. Thanks.
$ kubeval job.yaml
The file bob.yaml contains an invalid CronJob
---> spec.jobTemplate.spec.template.spec.containers.0.resources.limits: Must validate one and only one schema (oneOf)
# Publish new schemas
$ kubeval job.yaml
The file bob.yaml contains a valid CronJo
Removes the
integer
schema from theio.k8s.apimachinery.pkg.api.resource.Quantity
patch.The
jsonschema
spec denotes that thenumber
type is a superset ofinteger
. Thus, thisoneOf
will always fail if given an integer, as it satisfies two types.Verified by running
kubeval
against the schemas generated by this patch: