Skip to content

[INFRA-372]: Add Plane-EE Helm chart configuration for PostgreSQL read replica support#222

Open
pratapalakshmi wants to merge 3 commits intomasterfrom
chore/add/read_replica/enterprise
Open

[INFRA-372]: Add Plane-EE Helm chart configuration for PostgreSQL read replica support#222
pratapalakshmi wants to merge 3 commits intomasterfrom
chore/add/read_replica/enterprise

Conversation

@pratapalakshmi
Copy link
Copy Markdown
Collaborator

@pratapalakshmi pratapalakshmi commented Apr 27, 2026

Summary by CodeRabbit

  • New Features

    • Added PostgreSQL read replica support with configurable options to enable read scaling and specify dedicated replica database endpoints.
  • Chores

    • Updated Helm chart version to 2.3.3.

…eplica support

- Updated `Chart.yaml` to version 2.3.3.
- Added `DATABASE_READ_REPLICA_URL` to `app-env.yaml` for conditional inclusion based on values.
- Introduced `read_replica` configuration in `values.yaml` for PostgreSQL service.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 27, 2026

Warning

Rate limit exceeded

@pratapalakshmi has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 37 minutes and 46 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 07a1fe84-1edb-4576-8c9d-61d1c5795a81

📥 Commits

Reviewing files that changed from the base of the PR and between f3679fc and bb6fca8.

📒 Files selected for processing (2)
  • charts/plane-enterprise/templates/config-secrets/app-env.yaml
  • charts/plane-enterprise/values.yaml

Walkthrough

Bumps the Plane Enterprise Helm chart version to 2.3.3 and introduces PostgreSQL read replica support by adding configuration values and environment variable wiring to the application deployment templates.

Changes

Cohort / File(s) Summary
Chart Versioning
charts/plane-enterprise/Chart.yaml
Helm chart version incremented from 2.3.2 to 2.3.3.
Read Replica Configuration
charts/plane-enterprise/values.yaml, charts/plane-enterprise/templates/config-secrets/app-env.yaml
Added services.postgres.read_replica configuration block with enabled (defaults to false) and remote_url parameters; wired environment variables DATABASE_READ_REPLICA_URL (Secret) and ENABLE_READ_REPLICA (ConfigMap) to support read replica endpoints.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 A chart update hops with glee,
Read replicas now configured, three:
Version bumps and values align,
Database queries now divide and shine! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The PR title clearly describes the main change: adding Helm chart configuration for PostgreSQL read replica support to Plane-EE, which aligns with all modifications across Chart.yaml, values.yaml, and the app-env.yaml template.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/add/read_replica/enterprise

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (1)
charts/plane-enterprise/templates/config-secrets/app-env.yaml (1)

28-30: Consider documenting that read-replica is remote-only.

Unlike the DATABASE_URL block (Lines 20-26) which derives a URL from the in-cluster service when local_setup=true, the new block has no local_setup branch — read-replica only works when an explicit remote_url is supplied. That seems intentional (in-cluster single-node Postgres can't serve as its own replica), but it's worth a short comment in values.yaml next to read_replica.remote_url to set operator expectations.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@charts/plane-enterprise/templates/config-secrets/app-env.yaml` around lines
28 - 30, Add a short clarifying comment in values.yaml next to the
services.postgres.read_replica.remote_url key stating that read-replica is
remote-only (the chart/template only sets DATABASE_READ_REPLICA_URL when
remote_url is provided and does not derive an in-cluster URL even with
local_setup=true); reference the values key
services.postgres.read_replica.remote_url and the template output variable
DATABASE_READ_REPLICA_URL so operators understand they must supply a remote URL
for replicas.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@charts/plane-enterprise/templates/config-secrets/app-env.yaml`:
- Around line 28-30: Guard against enabled=true with an empty remote_url by
updating the template that emits DATABASE_READ_REPLICA_URL: check
.Values.services.postgres.read_replica.enabled and
.Values.services.postgres.read_replica.remote_url together: either only render
DATABASE_READ_REPLICA_URL when remote_url is non-empty, or add a fail-fast check
(e.g. {{- if and .Values.services.postgres.read_replica.enabled (not
.Values.services.postgres.read_replica.remote_url) }}{{ fail
"read_replica.enabled is true but read_replica.remote_url is empty" }}{{- end
}}) to stop chart rendering; ensure this is coordinated with ENABLE_READ_REPLICA
so the ConfigMap and Secret remain consistent (refer to
.Values.services.postgres.read_replica.enabled,
.Values.services.postgres.read_replica.remote_url, DATABASE_READ_REPLICA_URL and
ENABLE_READ_REPLICA).

In `@charts/plane-enterprise/values.yaml`:
- Around line 84-86: The inline comment on the remote_url entry under
read_replica contains trailing whitespace; edit the values for
read_replica.remote_url to remove the extra spaces after "URL ONLY" so the
comment ends immediately after the text (ensure symbol names: read_replica and
remote_url remain unchanged).

---

Nitpick comments:
In `@charts/plane-enterprise/templates/config-secrets/app-env.yaml`:
- Around line 28-30: Add a short clarifying comment in values.yaml next to the
services.postgres.read_replica.remote_url key stating that read-replica is
remote-only (the chart/template only sets DATABASE_READ_REPLICA_URL when
remote_url is provided and does not derive an in-cluster URL even with
local_setup=true); reference the values key
services.postgres.read_replica.remote_url and the template output variable
DATABASE_READ_REPLICA_URL so operators understand they must supply a remote URL
for replicas.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 6e4fe427-4e0c-4586-9d92-0fae4932f121

📥 Commits

Reviewing files that changed from the base of the PR and between 41dc47d and f3679fc.

📒 Files selected for processing (3)
  • charts/plane-enterprise/Chart.yaml
  • charts/plane-enterprise/templates/config-secrets/app-env.yaml
  • charts/plane-enterprise/values.yaml

Comment thread charts/plane-enterprise/templates/config-secrets/app-env.yaml Outdated
Comment thread charts/plane-enterprise/values.yaml Outdated
@pratapalakshmi pratapalakshmi changed the title [fix]: Update Plane-EE Helm chart configuration for PostgreSQL read replica support [INFRA-372][fix]: Update Plane-EE Helm chart configuration for PostgreSQL read replica support Apr 27, 2026
@makeplane
Copy link
Copy Markdown

makeplane Bot commented Apr 27, 2026

Linked to Plane Work Item(s)

This comment was auto-generated by Plane

@pratapalakshmi pratapalakshmi changed the title [INFRA-372][fix]: Update Plane-EE Helm chart configuration for PostgreSQL read replica support [INFRA-372]: Add Plane-EE Helm chart configuration for PostgreSQL read replica support Apr 27, 2026
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