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

Function Validate

kubeval/kubeval.go:252–255  ·  view source on GitHub ↗

Validate a Kubernetes YAML file, parsing out individual resources and validating them all according to the relevant schemas

(input []byte, conf ...*Config)

Source from the content-addressed store, hash-verified

250// Validate a Kubernetes YAML file, parsing out individual resources
251// and validating them all according to the relevant schemas
252func 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

Calls 2

NewSchemaCacheFunction · 0.85
ValidateWithCacheFunction · 0.85