Repository navigation
fix(k8s): delete late-bound move volume by claim UID - #7633
Merged
Merged
Conversation
dan-petty
marked this pull request as ready for review
November 28, 2026 20:47
dan-petty-release Bot
added a commit
that referenced
this pull request
Nov 28, 2026
🤖 I have created a release *beep* *boop* --- ## [0.240.1](v0.240.0...v0.240.1) (2026-11-28) ### Bug Fixes * **docs:** fix stale statements found by the content census ([#7632](#7632)) ([7eed4ac](7eed4ac)) * **infra:** render infra.repos in ConfigMap and drift exit ([#7631](#7631)) ([24d2193](24d2193)) * **k8s:** delete late-bound move volume by claim UID ([#7633](#7633)) ([abeebd8](abeebd8)) * **roadmap:** brain sync rewrites stale near lists of unchanged neighbours ([#7629](#7629)) ([ac36afe](ac36afe)) ### Performance Improvements * **tests:** keep 4 heaviest invariant files under 15 s ([#7630](#7630)) ([724426f](724426f)), closes [#4890](#4890) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Captures
<claim>-move's UID before deleting the claim on undo and waits within a bounded interval after deletion to set any PersistentVolume matchingspec.claimRef.uidto reclaim policyDelete.Closes #7452
Summary
metadata.uidandspec.volumeNamefrom<claim>-moveviakubectl get pvc ... -o jsoninsrc/devops_cli/k8s/volume_move.pybefore deleting the claim.Deletepatching whenspec.volumeNameis set.<claim>-moveholds a UID and nospec.volumeName, pollkubectl get pv -o jsonup toDEFAULT_K8S_VOLUME_MOVE_LATE_VOLUME_WAIT_SECONDSafter deleting the claim and patch every PersistentVolume matchingspec.claimRef.uidtoDelete.tests/k8s/test_k8s_volume_move.pycovering immediate and polled late-bound PersistentVolume cleanup.Verification
uv run devops ci test tests/k8s/test_k8s_volume_move.py(96 passed)uv run devops ci fail-to-pass --base origin/main(2 new tests fail onorigin/mainand pass on head)uv run devops ci --check --no-cache --skip test,outdated(27/27 checks passed)Change:
openspec/changes/archive/2026-11-28-7452-delete-late-bound-move-volume/