Skip to content

[snapshot] restore --wait: name the PVCs it does not await - #442

Open
kneumoin wants to merge 1 commit into
mainfrom
snapshot-restore-wait-unawaited-report
Open

[snapshot] restore --wait: name the PVCs it does not await#442
kneumoin wants to merge 1 commit into
mainfrom
snapshot-restore-wait-unawaited-report

Conversation

@kneumoin

@kneumoin kneumoin commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

--wait already finishes without polling a dormant WaitForFirstConsumer claim, but it only mentioned each one in a progress line and summed them up as a counter, so an operator could not tell which restored claims the command stopped tracking.

Collect those claims during the existing classification pass and write one list, before the remaining claims are polled: namespace/name, the StorageClass that was actually resolved (the cluster default is reported by its own name, not as an empty field), and its volumeBindingMode. The list is part of the command result, so it goes to an injectable writer wired to cmd.OutOrStdout() and a failed write fails the restore instead of exiting successfully with incomplete output.

The classification itself is unchanged: which claims are awaited still follows selected node, live consumer, and provisioning events. A wait timeout now names the claim, its last observed status.phase, and states that the restored objects were already applied and are not rolled back. Help no longer implies that every restored PVC is awaited until Bound.

--wait already finishes without polling a dormant WaitForFirstConsumer claim, but
it only mentioned each one in a progress line and summed them up as a counter, so
an operator could not tell which restored claims the command stopped tracking.

Collect those claims during the existing classification pass and write one list,
before the remaining claims are polled: namespace/name, the StorageClass that was
actually resolved (the cluster default is reported by its own name, not as an
empty field), and its volumeBindingMode. The list is part of the command result,
so it goes to an injectable writer wired to cmd.OutOrStdout() and a failed write
fails the restore instead of exiting successfully with incomplete output.

The classification itself is unchanged: which claims are awaited still follows
selected node, live consumer, and provisioning events. A wait timeout now names
the claim, its last observed status.phase, and states that the restored objects
were already applied and are not rolled back. Help no longer implies that every
restored PVC is awaited until Bound.

Signed-off-by: Neumoin, Konstantin <konstantin.neumoin@flant.com>
@kneumoin
kneumoin requested a review from ldmonster as a code owner August 6, 2026 07:49
@kneumoin
kneumoin requested review from kkozoriz and removed request for ldmonster August 6, 2026 07:49
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.

1 participant