You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The expected behavior of the --ignore-missing-schemas flag should be to validate (or at least report that no action was taken) any resources whose schemas could not be found. The actual behavior is to simply ignore all schemas and report that each document is valid. This means that the only validation that kubeval actually performs is a check for a valid YAML document and valid kind and apiVersion attributes.
The following demonstrates this:
# Without the flag
$ kubeval fixtures/invalid.yaml
The document fixtures/invalid.yaml contains an invalid ReplicationController
---> spec.replicas: Invalid type. Expected: integer, given: string
# With the flag
$ kubeval fixtures/invalid.yaml --ignore-missing-schemas
Warning: Set to ignore missing schemas
The document fixtures/invalid.yaml contains a valid ReplicationController
The text was updated successfully, but these errors were encountered:
The expected behavior of the
--ignore-missing-schemas
flag should be to validate (or at least report that no action was taken) any resources whose schemas could not be found. The actual behavior is to simply ignore all schemas and report that each document is valid. This means that the only validation thatkubeval
actually performs is a check for a valid YAML document and validkind
andapiVersion
attributes.The following demonstrates this:
The text was updated successfully, but these errors were encountered: