1
0
mirror of https://github.com/rancher/types.git synced 2025-09-16 23:08:25 +00:00

Fix for deployment upgrade strategy transformer

This commit is contained in:
Alena Prokharchyk
2018-05-10 16:16:46 -07:00
parent 79f22d2e4d
commit 04783c6eac

View File

@@ -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",