instrumenta / kubernetes-json-schema

Schemas for every version of every object in every version of Kubernetes
https://kubernetesjsonschema.dev
Other
306 stars 134 forks source link

Use additionalProperties for all objects #29

Open estahn opened 3 years ago

estahn commented 3 years ago

All objects should include "additionalProperties": false, to properly validate, e.g. the following should fail but doesn't with the current schemas:

resources:
  limits:
    foobar: 123
    cpu: 100m
    memory: 128Mi
  requests:
    cpu: 100m
    memory: 128Mi