Files
cozystack/cmd/credentials-migrate
Andrei Kvapil 85243d43f1 feat(credentials-migrate): hold releases until their deps roll out
Every application chart is copied out of the one cozystack-packages
source, so all of them switch the moment the platform chart moves it,
while cozystack-controller and the operators roll out on their own
schedule. A Package dependsOn does not order that: tenant releases carry
no dependsOn, and Flux only asks that a dependency be Ready, which it
is on its old revision. On a live upgrade the old controller stripped
the ClickHouse valuesFrom entries and the old redis-operator rolled the
converted Redis pods its own way, locking clients out for minutes.

--hold-until-rollout lets the hook record the images a Deployment runs
and suspend every release of the kind; the finish Job resumes them, with
their valuesFrom re-seeded, once each Deployment runs other images on
all of its pods. Neither the old controller nor the old API touches
spec.suspend. A hold that times out keeps the releases suspended and
reports them left out, since running on the old chart is safer than a
converted one the old components act on.

Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-12-01 14:30:31 +01:00
..