-
Notifications
You must be signed in to change notification settings - Fork 260
Open
Description
I'm getting:
$ opm alpha render-template basic
Error: creating template by type: unknown template schema: basic
In the code, it looks like GetSupportedTypes() is returning the last portion of the schema:
operator-registry/alpha/template/registry.go
Line 121 in 783862a
| types = append(types, schema[strings.LastIndex(schema, ".")+1:]) |
But then the factory is just returning the schema, which is the full path rather than just the last portion:
| r.factories[factory.Schema()] = factory |
| const schema string = "olm.template.basic" |
So then GetTemplateByType() is trying to index by the full path, which doesn't match the shorter type:
| factory, exists := r.factories[schema] |
Perhaps this PR introduced the regression?
Metadata
Metadata
Assignees
Labels
No labels