1
0
mirror of https://github.com/rancher/types.git synced 2025-07-19 15:56:26 +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
commit 43ea779caf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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