INNER CODE UNIT · Go
verifyBundles
werf/nelm · scripts/schemagen/main.go:292
func verifyBundles(ctx context.Context, opts options) error {
indexPath := filepath.Join(opts.outputDir, indexFileName)
index := readExistingIndex(indexPath)
if index == nil {
return fmt.Errorf("%s is missing or unreadable, run: task generate:validation-schemas", indexPath)
}
if index.CRDs == nil {
return fmt.Errorf("%s lists no CRDs bundle, run: task generate:validation-schemas", indexPath)
}
if index.Kubernetes == nil {
return fmt.Errorf("%s lists no Kubernetes bundle, run: task generate:validation-schemas", indexPath)
}
// Which patch of every older minor was collected is decided from the upstream listing at generation
// time, so it is taken from the index as recorded. What is checked against the Taskfile is the pin