From 8c0afaa380e418f49ff32cfa487b0a83238acab8 Mon Sep 17 00:00:00 2001 From: Yossi Boaron Date: Wed, 25 Oct 2023 15:56:53 +0300 Subject: [PATCH] Delete Calico IPPools when Submariner uninstalled All Calico IPPools created by Submariner should be deleted when Submariner is uninstalled. This PR updates Calico IPPools handler Uninstall function to delete all IPPools regardless of isGateway field status. Fixes: https://github.com/submariner-io/submariner/issues/2764 Signed-off-by: Yossi Boaron --- pkg/routeagent_driver/handlers/calico/ippool_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/routeagent_driver/handlers/calico/ippool_handler.go b/pkg/routeagent_driver/handlers/calico/ippool_handler.go index a3e354c4d..df975db6d 100644 --- a/pkg/routeagent_driver/handlers/calico/ippool_handler.go +++ b/pkg/routeagent_driver/handlers/calico/ippool_handler.go @@ -129,7 +129,7 @@ func (h *calicoIPPoolHandler) TransitionToGateway() error { } func (h *calicoIPPoolHandler) Stop(uninstall bool) error { - if !uninstall || !h.isGateway.Load() { + if !uninstall { return nil }