1
0
mirror of https://github.com/rancher/types.git synced 2025-09-18 16:10:58 +00:00

Drop DisplayName and ClusterName on cluster

This commit is contained in:
Darren Shepherd
2018-04-04 13:40:39 -07:00
parent 2e66000b6b
commit 5f2e5be254
2 changed files with 0 additions and 4 deletions

View File

@@ -52,7 +52,6 @@ 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"`
@@ -86,7 +85,6 @@ type ClusterStatus struct {
FailedSpec *ClusterSpec `json:"failedSpec,omitempty"`
Requested v1.ResourceList `json:"requested,omitempty"`
Limits v1.ResourceList `json:"limits,omitempty"`
ClusterName string `json:"clusterName,omitempty"`
Version *version.Info `json:"version,omitempty"`
AppliedPodSecurityPolicyTemplateName string `json:"appliedPodSecurityPolicyTemplateId"`
}

View File

@@ -114,11 +114,9 @@ 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"},
m.Drop{Field: "clusterName"},
).
AddMapperForType(&Version, v3.ClusterEvent{}, &m.Move{
From: "type",