NewSchemaCache returns a new schema cache to be used with ValidateWithCache
()
| 244 | // NewSchemaCache returns a new schema cache to be used with |
| 245 | // ValidateWithCache |
| 246 | func NewSchemaCache() map[string]*gojsonschema.Schema { |
| 247 | return make(map[string]*gojsonschema.Schema, 0) |
| 248 | } |
| 249 | |
| 250 | // Validate a Kubernetes YAML file, parsing out individual resources |
| 251 | // and validating them all according to the relevant schemas |