1
0
mirror of https://github.com/rancher/types.git synced 2025-06-27 22:16:48 +00:00

add status mapper

This commit is contained in:
Aiwantaozi 2018-04-25 17:51:20 +08:00
parent 71878a13b6
commit be62d737d3

View File

@ -355,6 +355,7 @@ func projectNetworkPolicyTypes(schema *types.Schemas) *types.Schemas {
func logTypes(schema *types.Schemas) *types.Schemas {
return schema.
AddMapperForType(&Version, v3.ClusterLogging{},
&m.Embed{Field: "status"},
m.DisplayName{}).
AddMapperForType(&Version, v3.ProjectLogging{},
m.DisplayName{}).