1
0
mirror of https://github.com/rancher/types.git synced 2025-07-31 04:49:37 +00:00

Hide system images from api

This commit is contained in:
Alena Prokharchyk 2018-02-02 16:08:07 -08:00
parent 017db82363
commit 80924decab

View File

@ -81,6 +81,9 @@ func clusterTypes(schemas *types.Schemas) *types.Schemas {
AddMapperForType(&Version, v3.ClusterRegistrationToken{},
&m.Embed{Field: "status"},
).
AddMapperForType(&Version, v3.RancherKubernetesEngineConfig{},
m.Drop{Field: "systemImages"},
).
MustImportAndCustomize(&Version, v3.Cluster{}, func(schema *types.Schema) {
schema.SubContext = "clusters"
}).