1
0
mirror of https://github.com/rancher/types.git synced 2025-07-31 04:49:37 +00:00

Fix scale on types

This commit is contained in:
Darren Shepherd 2018-03-03 21:29:05 -07:00
parent 8195bf8c74
commit 9945768e8c

View File

@ -132,9 +132,8 @@ func statefulSetTypes(schemas *types.Schemas) *types.Schemas {
).
AddMapperForType(&Version, v1beta2.StatefulSetSpec{},
&m.Move{
From: "replicas",
To: "scale",
DestDefined: true,
From: "replicas",
To: "scale",
},
&m.Embed{Field: "updateStrategy"},
&m.Enum{
@ -176,9 +175,8 @@ func replicaSetTypes(schemas *types.Schemas) *types.Schemas {
return schemas.
AddMapperForType(&Version, v1beta1.ReplicaSetSpec{},
&m.Move{
From: "replicas",
To: "scale",
DestDefined: true,
From: "replicas",
To: "scale",
},
&m.Move{
From: "minReadySeconds",
@ -205,9 +203,8 @@ func replicationControllerTypes(schemas *types.Schemas) *types.Schemas {
return schemas.
AddMapperForType(&Version, v1.ReplicationControllerSpec{},
&m.Move{
From: "replicas",
To: "scale",
DestDefined: true,
From: "replicas",
To: "scale",
},
&m.Move{
From: "minReadySeconds",