MCPcopy
hub / github.com/instrumenta/kubeval / NewSchemaCache

Function NewSchemaCache

kubeval/kubeval.go:246–248  ·  view source on GitHub ↗

NewSchemaCache returns a new schema cache to be used with ValidateWithCache

()

Source from the content-addressed store, hash-verified

244// NewSchemaCache returns a new schema cache to be used with
245// ValidateWithCache
246func 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

Callers 2

main.goFile · 0.92
ValidateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected