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:
parent
017db82363
commit
80924decab
@ -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"
|
||||
}).
|
||||
|
Loading…
Reference in New Issue
Block a user