utils/openapi.go
func (s *OpenAPISchema) Validate(obj *unstructured.Unstructured) []error {
	gvk := obj.GroupVersionKind()
	log.Infof("validate object %q", gvk)
	return validation.ValidateModel(obj.UnstructuredContent(), s.schema, fmt.Sprintf("%s.%s", gvk.Version, gvk.Kind))
}
func (s *OpenAPISchema) Validate(obj *unstructured.Unstructured) []error {
	gvk := obj.GroupVersionKind()
	log.Infof("validate object %q", gvk)
	return validation.ValidateModel(obj.UnstructuredContent(), s.schema, fmt.Sprintf("%s.%s", gvk.Version, gvk.Kind))
}
func ( s * OpenAPISchema ) Validate ( obj * unstructured . Unstructured ) [ ] error { gvk := obj . GroupVersionKind ( ) log . Infof ( " " , gvk ) return validation . ValidateModel ( obj . UnstructuredContent ( ) , s . schema , fmt . Sprintf ( " " , gvk . Version , gvk . Kind ) ) }
// Validate is the primary entrypoint into this class
Validate is the primary entrypoint into this class