From cf1216be57130b28a1ee6b8c7d9964e1c898eb81 Mon Sep 17 00:00:00 2001 From: Laurence Man Date: Wed, 1 Dec 2021 11:31:09 -0800 Subject: [PATCH] windows: pass ExceptUpgradeService param to stop-calico.ps1 as well (#1372) When stop-calico.ps1 is called from uninstall.ps1 we have to also pass in the ExceptUpgradeService param to stop-calico.ps1 Otherwise the calico-upgrade service is stopped. --- windows-packaging/CalicoWindows/uninstall-calico.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows-packaging/CalicoWindows/uninstall-calico.ps1 b/windows-packaging/CalicoWindows/uninstall-calico.ps1 index 08d701526..09e945bf8 100644 --- a/windows-packaging/CalicoWindows/uninstall-calico.ps1 +++ b/windows-packaging/CalicoWindows/uninstall-calico.ps1 @@ -25,7 +25,7 @@ Test-CalicoConfiguration $ErrorActionPreference = 'SilentlyContinue' Write-Host "Stopping Calico if it is running..." -& $PSScriptRoot\stop-calico.ps1 +& $PSScriptRoot\stop-calico.ps1 -ExceptUpgradeService $ExceptUpgradeService if ($env:CALICO_NETWORKING_BACKEND -EQ "windows-bgp") {