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:
parent
5ac2e3f5cd
commit
8f5c9f7c39
@ -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{})
|
||||
|
Loading…
Reference in New Issue
Block a user