Skip to content

Commit

Permalink
Delete Calico IPPools when Submariner uninstalled
Browse files Browse the repository at this point in the history
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: #2764

Signed-off-by: Yossi Boaron <[email protected]>
  • Loading branch information
yboaron authored and skitt committed Oct 29, 2023
1 parent 45ead22 commit 4e63237
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/routeagent_driver/handlers/calico/ippool_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@ func (h *calicoIPPoolHandler) TransitionToGateway() error {
}

func (h *calicoIPPoolHandler) Uninstall() error {
if !h.isGateway.Load() {
return nil
}

logger.Info("Uninstalling Calico IPPools used for Submariner")

labelSelector := labels.SelectorFromSet(map[string]string{submarinerIPPool: "true"}).String()
Expand Down

0 comments on commit 4e63237

Please sign in to comment.