Skip to content

feat(k8s): set the size of the new claim in volume move - #7491

Merged
dan-petty merged 3 commits into
mainfrom
feat/7484-volume-move-size
Nov 28, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/7484-volume-move-size

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

devops k8s volume move NAMESPACE/CLAIM --size QUANTITY makes the temporary claim and the claim made again with a larger storage request. A local-path volume does not limit its data to the size of its claim, but a class such as longhorn does, so a claim that holds more than it requests needs a larger new claim. The size in git does not help: the move takes the size of the live claim, and a bound local-path claim cannot grow.

The plan refuses a size that is not a Kubernetes quantity or that is under the size of the old claim, keeps the size when the option names the current one, and --plan prints the size before and after the move.

Closes #7484

Change: openspec/changes/archive/2026-11-28-7484-volume-move-size/

@dan-petty dan-petty added type/feature Type feature: a new function scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 28, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Live checks on the homelab, 2026-11-28.

Check Result
main: move of devops/roadmap-service-home (1Gi claim, 3,528,025,691 bytes) to longhorn tar: ...: Cannot open: No space left on device; the move undid its steps (dan-petty/homelab#579)
This branch: --plan --storage-class longhorn --size 2Gi of a local-path claim of 1Gi that holds 1,289,748,480 bytes Size: 1Gi now, 2Gi after the move.
The move The two sides are equal: 2 entries, 2 files, 1289748480 bytes; 39 s; claim longhorn, 2Gi, Bound; sha256sum of the file the same

The test namespace and its volumes are deleted.

@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 00:25
@dan-petty
dan-petty merged commit 15ac474 into main Nov 28, 2026
28 checks passed
@dan-petty
dan-petty deleted the feat/7484-volume-move-size branch November 28, 2026 00:28
dan-petty-release Bot added a commit that referenced this pull request Nov 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.231.0](v0.230.0...v0.231.0)
(2026-11-28)


### Features

* **k8s:** set the size of the new claim in volume move
([#7491](#7491))
([15ac474](15ac474)),
closes [#7484](#7484)


### Bug Fixes

* **k8s:** end a retrying Argo CD sync in volume move
([#7490](#7490))
([d530ee0](d530ee0))

---
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(k8s): set the size of the new claim in volume move

1 participant