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:
parent
b1065025ff
commit
a34c147d29
@ -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"`
|
||||
|
@ -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"},
|
||||
|
Loading…
Reference in New Issue
Block a user