1
0
mirror of https://github.com/rancher/types.git synced 2025-06-27 05:56:50 +00:00

Map catalogKind to kind

This commit is contained in:
Darren Shepherd 2018-01-31 11:54:35 -07:00
parent 6c79f71293
commit 5367e58ae7

View File

@ -44,6 +44,9 @@ func schemaTypes(schemas *types.Schemas) *types.Schemas {
func catalogTypes(schemas *types.Schemas) *types.Schemas {
return schemas.
AddMapperForType(&Version, v3.Catalog{},
&m.Move{From: "catalogKind", To: "kind"},
).
MustImport(&Version, v3.Catalog{}).
MustImport(&Version, v3.Template{}).
MustImport(&Version, v3.TemplateVersion{})