diff --git a/apis/management.cattle.io/v3/cluster_types.go b/apis/management.cattle.io/v3/cluster_types.go index 57901bf1..d16a6ce1 100644 --- a/apis/management.cattle.io/v3/cluster_types.go +++ b/apis/management.cattle.io/v3/cluster_types.go @@ -52,6 +52,7 @@ type Cluster struct { } type ClusterSpec struct { + DisplayName string `json:"displayName"` Description string `json:"description"` Internal bool `json:"internal" norman:"nocreate,noupdate"` DesiredAgentImage string `json:"desiredAgentImage"` diff --git a/apis/management.cattle.io/v3/schema/schema.go b/apis/management.cattle.io/v3/schema/schema.go index f763274e..b7802bb8 100644 --- a/apis/management.cattle.io/v3/schema/schema.go +++ b/apis/management.cattle.io/v3/schema/schema.go @@ -114,6 +114,7 @@ func clusterTypes(schemas *types.Schemas) *types.Schemas { return schemas. AddMapperForType(&Version, v3.Cluster{}, &m.Embed{Field: "status"}, + m.DisplayName{}, ). AddMapperForType(&Version, v3.ClusterStatus{}, m.Drop{Field: "serviceAccountToken"},