From 04783c6eac85ee62987b5365379fe9b25f1a07d0 Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Thu, 10 May 2018 16:16:46 -0700 Subject: [PATCH] Fix for deployment upgrade strategy transformer --- apis/project.cattle.io/v3/schema/schema.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apis/project.cattle.io/v3/schema/schema.go b/apis/project.cattle.io/v3/schema/schema.go index 5b6e77f6..8b24d678 100644 --- a/apis/project.cattle.io/v3/schema/schema.go +++ b/apis/project.cattle.io/v3/schema/schema.go @@ -376,7 +376,11 @@ func deploymentTypes(schemas *types.Schemas) *types.Schemas { m.Move{From: "type", To: "strategy"}, ). AddMapperForType(&Version, v1beta2.DeploymentSpec{}, - &m.Embed{Field: "strategy"}, + &m.Move{ + From: "strategy", + To: "upgradeStrategy", + }, + &m.Embed{Field: "upgradeStrategy"}, &m.Move{ From: "replicas", To: "scale",