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:
@@ -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"`
|
||||
}
|
||||
|
@@ -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",
|
||||
|
Reference in New Issue
Block a user