Skip to content

Commit

Permalink
Fixup reconcile objec being deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielXiao committed Aug 23, 2024
1 parent c441c4a commit 7f57993
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ func (c *Controller) syncHandler(ctx context.Context, key string) error {
return err
}

if !ipAddressAllocation.DeletionTimestamp.IsZero() {
logger.V(4).Info(fmt.Sprintf("IPAddressAllocation %s/%s is being deleted, skip", ipAddressAllocation.Namespace, ipAddressAllocation.Name))
return nil
}

return c.processIPAddressAllocationCreateOrUpdate(ctx, ipAddressAllocation)
}

Expand Down

0 comments on commit 7f57993

Please sign in to comment.