1
0
mirror of https://github.com/rancher/types.git synced 2025-09-01 13:18:20 +00:00

Merge pull request #163 from moelsayed/hide_images

Hide image type in BaseService
This commit is contained in:
Alena Prokharchyk
2018-02-01 10:44:19 -08:00
committed by GitHub

View File

@@ -33,12 +33,17 @@ var (
Init(stackTypes).
Init(userTypes).
Init(logTypes).
Init(globalTypes)
Init(globalTypes).
Init(rkeTypes)
TokenSchema = factory.Schemas(&Version).
Init(tokens)
)
func rkeTypes(schemas *types.Schemas) *types.Schemas {
return schemas.AddMapperForType(&Version, v3.BaseService{}, m.Drop{Field: "image"})
}
func schemaTypes(schemas *types.Schemas) *types.Schemas {
return schemas.
MustImport(&Version, v3.DynamicSchema{})