Skip to content

feat: improve configmap lifecycle handling - #242

Merged
Fu Wei (fuweid) merged 3 commits into
mainfrom
xinwei/opt_deletecm
Aug 7, 2026
Merged

feat: improve configmap lifecycle handling#242
Fu Wei (fuweid) merged 3 commits into
mainfrom
xinwei/opt_deletecm

Conversation

@xinWeiWei24

Copy link
Copy Markdown
Contributor

Add configurable QPS, burst, batch size, and total limits to ConfigMap deletion. Reconstruct deterministic ConfigMap names to avoid listing all objects, delete them concurrently in batches, and stop when the existing set is exhausted.

Add configurable QPS, burst, batch size, and total limits to ConfigMap
deletion. Reconstruct deterministic ConfigMap names to avoid listing all
objects, delete them concurrently in batches, and stop when the existing
set is exhausted.
}
totalDeleted += int(succeeded)

// Fewer successes than requests means this batch reached a NotFound entry.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should do this check here.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's hard to follow the logic. just let the for condition decide when we can break.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call! move to the for condition and tested!

@fuweid
Fu Wei (fuweid) merged commit fbc57e7 into main Aug 7, 2026
4 checks passed
@fuweid
Fu Wei (fuweid) deleted the xinwei/opt_deletecm branch August 7, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants