Skip to content

Keep bundled PostgreSQL stable during upgrades - #154

Merged
charliedowler merged 1 commit into
mainfrom
feature/spk-1114
Aug 17, 2026
Merged

Keep bundled PostgreSQL stable during upgrades#154
charliedowler merged 1 commit into
mainfrom
feature/spk-1114

Conversation

@charliedowler

Copy link
Copy Markdown
Contributor

What changed

Bundled PostgreSQL now runs only as a pre-install hook. The hook weight remains -1.

The chart version is 2.14.0.

Why

The pre-upgrade hook recreated the PostgreSQL StatefulSet during every chart upgrade. This interrupted the database and removed every backend pod from the Service endpoints.

Operator impact

Helm upgrades no longer modify the bundled database. Apply changes to postgresql.* values manually. The full management migration is planned for the 3.0.0 chart major.

Verification

  • Generated the README with helm-docs 1.7.0.
  • Ran helm lint --strict charts/lightdash.
  • Rendered the chart and confirmed all bundled-PostgreSQL resources use only the pre-install hook.
  • Confirmed the hook weight remains -1.

Security triage: LOW (values annotation + docs only), scan waived by orchestrator.

Linear: SPK-1114

Create bundled PostgreSQL only during chart installation. Helm upgrades no longer recreate its hook resources.

Document the manual path for postgresql.* changes until chart 3.0.0.
@linear-code

linear-code Bot commented Aug 17, 2026

Copy link
Copy Markdown

SPK-1114

@charliedowler
charliedowler merged commit 22f9708 into main Aug 17, 2026
8 checks passed
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