From 80924decab5b05eab6ca84aa2bfa20b2d176826d Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Fri, 2 Feb 2018 16:08:07 -0800 Subject: [PATCH] Hide system images from api --- apis/management.cattle.io/v3/schema/schema.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apis/management.cattle.io/v3/schema/schema.go b/apis/management.cattle.io/v3/schema/schema.go index 447fb2aa..55cc9c4f 100644 --- a/apis/management.cattle.io/v3/schema/schema.go +++ b/apis/management.cattle.io/v3/schema/schema.go @@ -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" }).