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

Merge pull request #426 from alena1108/may10

Fix for deployment upgrade strategy transformer
This commit is contained in:
Alena Prokharchyk
2018-05-10 16:39:08 -07:00
committed by GitHub

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