You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 196cdff
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/kubernetes-upgrades.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ For a declared database schema transition, preflight locally renders the checksu
28
28
29
29
Replace `plan` with `apply` and add `--acknowledge-interruption`. Only an existing release is upgraded; first installation remains the chart's existing Helm workflow. The tool verifies the current server workload against the supplied accepted digest before mutation and writes private operation/recovery records under `--output`.
30
30
31
-
Maintenance transitions pause the release's CronJobs (a release still on the 0.2 chart has them; from 0.3 the server does the scheduled work itself and there are none), wait for their recorded active Jobs, scale server admission to zero and wait for old server pods to leave before running the backup command. The backup executable must create and verify the backup identified by `--backup-reference`, exit nonzero on failure, and use the customer's existing database/cloud credentials. A preexisting backup alone is insufficient for a maintenance transition: the command is required so it runs after quiescence. The tool does not invent a cloud snapshot implementation or silently assume a successful empty command produced a restorable backup.
31
+
A release whose recovery is restoring a backup (`rollbackCompatible: false`), or that declares downtime, runs the backup command before Helm, and the command is required: a preexisting backup alone is insufficient. Only a release that declares downtime (`upgrade.requiresDowntime`) stops the server first: it pauses the release's CronJobs (a release still on the 0.2 chart has them; from 0.3 the server does the scheduled work itself and there are none), waits for their recorded active Jobs, scales server admission to zero and waits for old server pods to leave before running the backup command. Every other release keeps serving while the backup runs, and the chart's rolling update replaces the servers one by one, because the previous release works on the database the new one's migrations leave ([api-and-migrations.md](api-and-migrations.md#the-database-a-migration-never-breaks-a-running-server)). `rollbackCompatible` decides the recovery, not downtime. The backup executable must create and verify the backup identified by `--backup-reference`, exit nonzero on failure, and use the customer's existing database/cloud credentials. The tool does not invent a cloud snapshot implementation or silently assume a successful empty command produced a restorable backup.
32
32
33
33
Helm receives the exact chart archive, the release's previous values, the customer values, and a generated file containing only the pinned image and release annotations. For a release that Helm 4 applies server-side (`helm get metadata` reports `applyMethod: ssa`), the upgrade passes `--force-conflicts`. The chart's declared values then take back the CronJob suspension and replica count this tool set with kubectl, as client-side apply does. Without it, the upgrade stops on a field-manager conflict after the migration hook has already run. `--wait`, `--wait-for-jobs` and a timeout bound the operation. In a chart with a migrations Job, as the `openbot` chart had up to 0.2, the pre-upgrade migration hook blocks workload promotion on migration failure and retains the database's advisory lock and history-reach checks. The special first installation with bundled PostgreSQL continues using an ordinary migration Job so the database can be created first. That distinction is unchanged. In a chart whose server applies its own migrations, as 0.3 does, there is no hook, and the server migrates as it starts.
34
34
@@ -38,7 +38,7 @@ After the candidate is verified, every CronJob this operation suspended is put b
38
38
39
39
No `--atomic`/automatic rollback is used. A failed migration can commit durable changes, so restoring an old Helm revision does not restore SQL.
40
40
41
-
A refusal before anything changed (a plan refusal, or a current workload that does not match the accepted release) writes no journal. A failure after quiescing began but before Helm ran (a CronJob wait, the scale-down or the backup) puts the replica count and CronJobs back exactly and records `failed`, which does not block another attempt. A failure once Helm has started records `recovery-required`. A maintenance transition then keeps server writes and scheduled work paused; a rollback-compatible transition without downtime is left serving, because the previous code accepts the resulting schema. Shutdown failure is reported alongside the original error. Previous replica counts and CronJob suspension states are retained for operator recovery. A `recovery-required` journal blocks another promotion from the same output directory; retain one directory per installation rather than bypassing its lock with a new path.
41
+
A refusal before anything changed (a plan refusal, or a current workload that does not match the accepted release) writes no journal. A failure after quiescing began but before Helm ran (a CronJob wait, the scale-down or the backup) puts the replica count and CronJobs back exactly and records `failed`, which does not block another attempt. A failure once Helm has started records `recovery-required`. A release that declared downtime then keeps server writes and scheduled work paused; one without downtime is left serving, because the previous release works on the resulting database. Shutdown failure is reported alongside the original error. Previous replica counts and CronJob suspension states are retained for operator recovery. A `recovery-required` journal blocks another promotion from the same output directory; retain one directory per installation rather than bypassing its lock with a new path.
42
42
43
43
Operators must review configuration/storage differences and ensure no other controller reopens write admission during maintenance. The tool serializes one operator invocation locally; it does not introduce a cluster-wide deployment operator or replace customer deployment concurrency policy. Backup restore, forward recovery and old-code compatibility remain explicit operator decisions.
0 commit comments