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

Add back DisplayName to cluster

This commit is contained in:
Darren Shepherd 2018-04-04 21:42:02 -07:00
parent b1065025ff
commit a34c147d29
2 changed files with 2 additions and 0 deletions

View File

@ -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"`

View File

@ -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"},