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:
parent
a123cd1714
commit
a1fd824df3
@ -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
|
||||
|
||||
|
@ -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{}).
|
||||
|
Loading…
Reference in New Issue
Block a user