From cac8df6ba72819f1a8781b9e07fba96d78bb0a13 Mon Sep 17 00:00:00 2001 From: Nont Date: Thu, 11 Apr 2024 21:42:43 -0500 Subject: [PATCH] Change the upgrademode of VMSS to rolling --- pkg/deploy/assets/env-development.json | 2 +- pkg/deploy/assets/gateway-production.json | 2 +- pkg/deploy/assets/rp-production.json | 2 +- pkg/deploy/generator/resources_dev.go | 2 +- pkg/deploy/generator/resources_gateway.go | 2 +- pkg/deploy/generator/resources_rp.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/deploy/assets/env-development.json b/pkg/deploy/assets/env-development.json index 10057c04528..d824de6fb53 100644 --- a/pkg/deploy/assets/env-development.json +++ b/pkg/deploy/assets/env-development.json @@ -224,7 +224,7 @@ }, "properties": { "upgradePolicy": { - "mode": "Manual" + "mode": "Rolling" }, "virtualMachineProfile": { "osProfile": { diff --git a/pkg/deploy/assets/gateway-production.json b/pkg/deploy/assets/gateway-production.json index 1a3296cd889..b7a8f872df1 100644 --- a/pkg/deploy/assets/gateway-production.json +++ b/pkg/deploy/assets/gateway-production.json @@ -226,7 +226,7 @@ }, "properties": { "upgradePolicy": { - "mode": "Manual" + "mode": "Rolling" }, "virtualMachineProfile": { "osProfile": { diff --git a/pkg/deploy/assets/rp-production.json b/pkg/deploy/assets/rp-production.json index 7b80cdb2236..4d8009b29fa 100644 --- a/pkg/deploy/assets/rp-production.json +++ b/pkg/deploy/assets/rp-production.json @@ -431,7 +431,7 @@ }, "properties": { "upgradePolicy": { - "mode": "Manual" + "mode": "Rolling" }, "virtualMachineProfile": { "osProfile": { diff --git a/pkg/deploy/generator/resources_dev.go b/pkg/deploy/generator/resources_dev.go index fdd7181fe07..668b7fee323 100644 --- a/pkg/deploy/generator/resources_dev.go +++ b/pkg/deploy/generator/resources_dev.go @@ -53,7 +53,7 @@ func (g *generator) devProxyVMSS() *arm.Resource { }, VirtualMachineScaleSetProperties: &mgmtcompute.VirtualMachineScaleSetProperties{ UpgradePolicy: &mgmtcompute.UpgradePolicy{ - Mode: mgmtcompute.UpgradeModeManual, + Mode: mgmtcompute.UpgradeModeRolling, }, VirtualMachineProfile: &mgmtcompute.VirtualMachineScaleSetVMProfile{ OsProfile: &mgmtcompute.VirtualMachineScaleSetOSProfile{ diff --git a/pkg/deploy/generator/resources_gateway.go b/pkg/deploy/generator/resources_gateway.go index 63e7f1dbf39..dc5ae15bb3b 100644 --- a/pkg/deploy/generator/resources_gateway.go +++ b/pkg/deploy/generator/resources_gateway.go @@ -259,7 +259,7 @@ func (g *generator) gatewayVMSS() *arm.Resource { Tags: map[string]*string{}, VirtualMachineScaleSetProperties: &mgmtcompute.VirtualMachineScaleSetProperties{ UpgradePolicy: &mgmtcompute.UpgradePolicy{ - Mode: mgmtcompute.UpgradeModeManual, + Mode: mgmtcompute.UpgradeModeRolling, }, VirtualMachineProfile: &mgmtcompute.VirtualMachineScaleSetVMProfile{ OsProfile: &mgmtcompute.VirtualMachineScaleSetOSProfile{ diff --git a/pkg/deploy/generator/resources_rp.go b/pkg/deploy/generator/resources_rp.go index ac4aa4d947f..4325e209f87 100644 --- a/pkg/deploy/generator/resources_rp.go +++ b/pkg/deploy/generator/resources_rp.go @@ -548,7 +548,7 @@ func (g *generator) rpVMSS() *arm.Resource { Tags: map[string]*string{}, VirtualMachineScaleSetProperties: &mgmtcompute.VirtualMachineScaleSetProperties{ UpgradePolicy: &mgmtcompute.UpgradePolicy{ - Mode: mgmtcompute.UpgradeModeManual, + Mode: mgmtcompute.UpgradeModeRolling, }, VirtualMachineProfile: &mgmtcompute.VirtualMachineScaleSetVMProfile{ OsProfile: &mgmtcompute.VirtualMachineScaleSetOSProfile{