Skip to content

Commit 9f70be8

Browse files
authored
skip deleting ippool (#10248)
1 parent f76d3ca commit 9f70be8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcalico-go/lib/clientv3/client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ type poolAccessor struct {
201201

202202
func (p poolAccessor) GetEnabledPools(ctx context.Context, ipVersion int) ([]v3.IPPool, error) {
203203
return p.getPools(ctx, func(pool *v3.IPPool) bool {
204+
if !pool.DeletionTimestamp.IsZero() {
205+
log.Debugf("Skipping deleting IP pool (%s)", pool.Name)
206+
return false
207+
}
204208
if pool.Spec.Disabled {
205209
log.Debugf("Skipping disabled IP pool (%s)", pool.Name)
206210
return false

0 commit comments

Comments
 (0)