Skip to content

fix(#2456): run the control-plane and knowledge-flow migration jobs by default - #2457

Merged
simcariou merged 1 commit into
swiftfrom
fix/2456-chart-migration-defaults
Aug 27, 2026
Merged

fix(#2456): run the control-plane and knowledge-flow migration jobs by default#2457
simcariou merged 1 commit into
swiftfrom
fix/2456-chart-migration-defaults

Conversation

@simcariou

@simcariou simcariou commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Rolled back - this change is not the one we want. The chart's migration
defaults stay false on purpose: a platform overlay either turns the Job on in
its own values or runs the upgrade imperatively. Only the stale comments needed
fixing, which is now the whole scope of #2456.

Original description below, kept for the record.


Since #2314 knowledge-flow creates no table at startup - both entrypoints call
require_tables(REQUIRED_TABLES) and refuse to boot on an unmigrated database.
The chart's knowledge-flow-backend and control-plane-backend values still
carried migration.enabled: false commented "Enable when gets Alembic
migrations", which has been false for months.

This PR flipped both defaults to true. That part is reverted; the comment fix
lands separately.

…y default

Both defaults still said "Enable when <backend> gets Alembic migrations" -
stale for months: each backend owns a tree (alembic_version_control_plane,
alembic_version_knowledge_flow). The consequence used to be silent, because
knowledge-flow's startup create_all bootstrapped its own schema; #2314 removed
it, so a fresh install with the chart defaults now crashloops on
"[SCHEMA] knowledge-flow: required table(s) missing".

Enabling only knowledge-flow would not be enough either: its REQUIRED_TABLES
include users/teammetadata, migrated by the control-plane tree.

No template change - the pre-install/pre-upgrade hook already runs the Job
before the new pods roll. prism prod/int override both to true already, so
this only aligns the published defaults with what real deployments do.

Closes #2456
@simcariou
simcariou merged commit a78a419 into swift Aug 27, 2026
26 checks passed
@simcariou
simcariou deleted the fix/2456-chart-migration-defaults branch August 27, 2026 15:11
@simcariou

Copy link
Copy Markdown
Contributor Author

Rolled back before the release: the defaults stay off by design, only the stale comments are fixed. Tracked back on #2456.

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