1
0
mirror of https://github.com/rancher/types.git synced 2025-08-14 10:45:16 +00:00

Hide image type in BaseService

This commit is contained in:
moelsayed 2018-01-31 20:58:47 +02:00
parent 5ac2e3f5cd
commit 8f5c9f7c39

View File

@ -31,12 +31,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{})