Validate a Kubernetes YAML file, parsing out individual resources and validating them all according to the relevant schemas
(input []byte, conf ...*Config)
| 250 | // Validate a Kubernetes YAML file, parsing out individual resources |
| 251 | // and validating them all according to the relevant schemas |
| 252 | func Validate(input []byte, conf ...*Config) ([]ValidationResult, error) { |
| 253 | schemaCache := NewSchemaCache() |
| 254 | return ValidateWithCache(input, schemaCache, conf...) |
| 255 | } |
| 256 | |
| 257 | // ValidateWithCache validates a Kubernetes YAML file, parsing out individual resources |
| 258 | // and validating them all according to the relevant schemas |