From 9945768e8cbc21474d98b9054c68b070c8bd88a8 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Sat, 3 Mar 2018 21:29:05 -0700 Subject: [PATCH] Fix scale on types --- apis/project.cattle.io/v3/schema/schema.go | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/apis/project.cattle.io/v3/schema/schema.go b/apis/project.cattle.io/v3/schema/schema.go index add8f527..1f257f78 100644 --- a/apis/project.cattle.io/v3/schema/schema.go +++ b/apis/project.cattle.io/v3/schema/schema.go @@ -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",