Skip to content

fix(k8s): end a retrying Argo CD sync in volume move - #7490

Merged
dan-petty merged 4 commits into
mainfrom
fix/7485-volume-move-end-retrying-sync
Nov 28, 2026
Merged

dan-petty merged 4 commits into
mainfrom
fix/7485-volume-move-end-retrying-sync

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

devops k8s volume move ends each sync operation of a paused Argo CD Application that still runs, after the pause and again before it deletes the copy pods. It patches status.operationState.phase to Terminating, as argocd app terminate-op does, and waits for the phase Failed. The wait of #7464 took finishedAt as the end, but between two retries Argo CD sets finishedAt and keeps the phase Running, so a retrying sync went on and could make a deleted claim again from git. An operation that ends by itself during the wait lets the move go on; one that still runs fails the step before the point of no return.

Closes #7485

Change: openspec/changes/archive/2026-11-28-7485-volume-move-end-retrying-sync/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 28, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence, homelab, 2026-11-27 23:18 UTC (Application danielpetty-com, a retrying automated sync that failed on the immutable class of its claims):

Read Value
status.operationState during the backoff phase=Running startedAt=2026-11-27T23:07:12Z finishedAt=2026-11-27T23:18:04Z retryCount=2; the next attempt at 23:18:24
kubectl wait --for=jsonpath='{.status.operationState.finishedAt}' (the wait of #7464) condition met at once, while the phase stayed Running
kubectl patch application danielpetty-com --type merge -p '{"status":{"operationState":{"phase":"Terminating"}}}' at 23:18:43 within seconds: phase Failed, message Operation terminated (retried 2 times).

@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 00:25
@dan-petty
dan-petty merged commit d530ee0 into main Nov 28, 2026
27 checks passed
@dan-petty
dan-petty deleted the fix/7485-volume-move-end-retrying-sync branch November 28, 2026 00:27
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/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(k8s): end a retrying Argo CD sync in volume move

1 participant