1
0
mirror of https://github.com/rancher/types.git synced 2025-07-01 07:51:48 +00:00

Delete clusterevent type

This commit is contained in:
Darren Shepherd 2018-10-29 08:55:04 -07:00 committed by Alena Prokharchyk
parent a123cd1714
commit a1fd824df3
2 changed files with 0 additions and 11 deletions

View File

@ -237,12 +237,6 @@ type AmazonElasticContainerServiceConfig struct {
AssociateWorkerNodePublicIP *bool `json:"associateWorkerNodePublicIp,omitempty" norman:"default=true"`
}
type ClusterEvent struct {
types.Namespaced
v1.Event
ClusterName string `json:"clusterName" norman:"type=reference[cluster]"`
}
type ClusterRegistrationToken struct {
types.Namespaced

View File

@ -128,10 +128,6 @@ func clusterTypes(schemas *types.Schemas) *types.Schemas {
AddMapperForType(&Version, v3.ClusterStatus{},
m.Drop{Field: "serviceAccountToken"},
).
AddMapperForType(&Version, v3.ClusterEvent{}, &m.Move{
From: "type",
To: "eventType",
}).
AddMapperForType(&Version, v3.ClusterRegistrationToken{},
&m.Embed{Field: "status"},
).
@ -139,7 +135,6 @@ func clusterTypes(schemas *types.Schemas) *types.Schemas {
m.Drop{Field: "systemImages"},
).
MustImport(&Version, v3.Cluster{}).
MustImport(&Version, v3.ClusterEvent{}).
MustImport(&Version, v3.ClusterRegistrationToken{}).
MustImport(&Version, v3.GenerateKubeConfigOutput{}).
MustImport(&Version, v3.ImportClusterYamlInput{}).