1
0
mirror of https://github.com/rancher/types.git synced 2025-08-29 09:02:45 +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
commit 35886b00f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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{})