From 7de2cf945932ad2c3ab6cbf9d26f73c58b18c191 Mon Sep 17 00:00:00 2001 From: Cecile Robert-Michon Date: Wed, 7 Oct 2020 14:44:43 -0700 Subject: [PATCH] Update publicips.go --- cloud/services/publicips/publicips.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cloud/services/publicips/publicips.go b/cloud/services/publicips/publicips.go index b001861751f..15b091cdb56 100644 --- a/cloud/services/publicips/publicips.go +++ b/cloud/services/publicips/publicips.go @@ -75,6 +75,7 @@ func (s *Service) Reconcile(ctx context.Context) error { // Delete deletes the public IP with the provided scope. func (s *Service) Delete(ctx context.Context) error { for _, ip := range s.Scope.PublicIPSpecs() { + // TODO: if supporting BYO IP make sure unmanaged IPs aren't deleted s.Scope.V(2).Info("deleting public IP", "public ip", ip.Name) err := s.Client.Delete(ctx, s.Scope.ResourceGroup(), ip.Name) if err != nil && azure.ResourceNotFound(err) {