Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use additionalProperties for all objects #5

Closed
estahn opened this issue Aug 11, 2021 · 2 comments
Closed

Use additionalProperties for all objects #5

estahn opened this issue Aug 11, 2021 · 2 comments

Comments

@estahn
Copy link

estahn commented Aug 11, 2021

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

see instrumenta#29

@yannh
Copy link
Owner

yannh commented Aug 13, 2021

@estahn some do, if you are using kubeconform or kubeval have you tried using the -strict or --strict parameters?

@yannh
Copy link
Owner

yannh commented Aug 28, 2021

Closing, please re-open if my suggestion did not help!

@yannh yannh closed this as completed Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants