Skip to content

fix(helm): keep bundled Postgres upgradable, stop secret modes masking settings, and route realtime on the app host - #10768

Merged
waleedlatif1 merged 4 commits into
stagingfrom
waleed/selfhost-helm-fixes
Dec 5, 2026
Merged

waleedlatif1 merged 4 commits into
stagingfrom
waleed/selfhost-helm-fixes

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Bundled Postgres (and copilot Postgres) stays upgradable: the StatefulSet claim-template labels carried the chart and app version, and Kubernetes treats claim templates as immutable, so every chart bump was rejected. Existing releases keep their stored labels (via lookup); new installs get stable selector labels. Argo CD / helm template users with an existing release run a one-time --cascade=orphan delete (README)
  • External Secrets mode: a key synced through remoteRefs.app (e.g. NEXT_PUBLIC_APP_URL) is no longer masked by an inline localhost default
  • existingSecret mode: envDefaults the operator changed are inlined again; values any released chart shipped as defaults are still left to the Secret
  • BETTER_AUTH_URL follows NEXT_PUBLIC_APP_URL unless set explicitly
  • Ingress: realtime defaults to the app host on /socket.io (the browser already used the page origin); a separate realtime host derives NEXT_PUBLIC_SOCKET_URL (https when TLS is on or the app URL is https); routing realtime on / of the app host fails to render
  • Local file storage with more than one replica or autoscaling fails to render unless object storage, a shared volume at /app/apps/sim/uploads, or app.storage.allowLocalWithReplicas is set; NOTES warns whenever local storage is in use
  • Empty existingSecret names and both databases enabled fail with clear messages
  • NOTES: realtime port-forward, OCI upgrade command; examples install from the OCI chart; passwordKey removed; upgrade notes for 1.17–1.20
  • CI: the kind job now upgrades from the newest published chart to this one

Type of Change

  • Bug fix

Testing

  • helm-unittest 283/283 locally and in CI's pinned image; new suites for claim-template labels (incl. mocked existing StatefulSet), ingress realtime, storage, NOTES, env defaults history — red against the previous templates
  • helm lint --strict; all examples render with CI's --set list; kubeconform on the CI values; rendered-manifest diff vs staging across default, every example, existingSecret, ESO and custom-realtime scenarios (every difference intended)

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

…g settings, and route realtime on the app host

- volumeClaimTemplates labels: reuse an existing StatefulSet's labels (lookup), stable selector labels otherwise; Kubernetes rejects any change there, so every version bump failed helm upgrade
- CI: install the newest published chart and helm upgrade it to the checkout
- External Secrets: skip an envDefaults key mapped in remoteRefs.app
- existingSecret: inline envDefaults values changed from the chart's defaults
- BETTER_AUTH_URL follows $(NEXT_PUBLIC_APP_URL) unless set
- ingress.realtime defaults to the app host under /socket.io; a separate host derives NEXT_PUBLIC_SOCKET_URL; "/" on the app host fails
- refuse multi-replica installs on local upload storage, warn otherwise
- fail on empty existingSecret names and on both databases enabled
- NOTES: realtime port-forward, OCI upgrade ref, upgrade pointer; chart 1.20.0
@vercel

vercel Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Ignored Ignored Preview Dec 4, 2026 10:32pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 35 files

Turn on auto-fix | Re-trigger cubic

Comment thread helm/sim/templates/_helpers.tpl Resolved
Comment thread helm/sim/templates/_helpers.tpl Resolved
Comment thread helm/sim/examples/values-aws.yaml Resolved
Comment thread helm/sim/templates/ingress.yaml Resolved
Comment thread helm/sim/values.yaml Resolved
Comment thread .github/workflows/helm.yml Resolved
…rce, legacy realtime host, and runnable example installs
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 35 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread helm/sim/templates/_helpers.tpl Resolved
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 42 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 42 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 067a8a5 into staging Dec 5, 2026
100 checks passed
@waleedlatif1
waleedlatif1 deleted the waleed/selfhost-helm-fixes branch December 5, 2026 00:48
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