Skip to content

feat(portal,console-v3): make container command/args configurable#371

Open
Dav-14 wants to merge 4 commits into
mainfrom
feat/portal-console-v3-command-args-configurable
Open

feat(portal,console-v3): make container command/args configurable#371
Dav-14 wants to merge 4 commits into
mainfrom
feat/portal-console-v3-command-args-configurable

Conversation

@Dav-14

@Dav-14 Dav-14 commented May 23, 2026

Copy link
Copy Markdown
Contributor

Exposes command / args (both for the main container and the migration Job) through values on the portal and console-v3 charts, flips the defaults to the new slim production entrypoint, and cascades the major-version bumps through cloudprem and formance.

Why

platform-ui#1194 and #1195 ship a prod-remix runtime image that drops pnpm (~30 MB) and a bundled migration runner. The new defaults:

  • main container: react-router-serve ./build/server/index.js
  • migration: node ./dist/migrate.cjs (SQL files resolved via MIGRATIONS_FOLDER)

vs the previous pnpm run start:prod / pnpm run db:migrate. This cuts portal/console-v3 image size ~64 % (423→154 MB compressed).

Since the charts hardcoded pnpm-based commands, bumping to the slim image previously caused both Pods to crashloop with exec: "pnpm": executable file not found in $PATH.

What this PR does

Configurability (feat(portal,console-v3): make container command/args configurable)

  • charts/{portal,console-v3}/templates/deployment.yaml: replace hardcoded command/args with {{ toYaml .Values.command }} / {{ toYaml .Values.args }}.
  • charts/{portal,console-v3}/templates/job.yaml: same for config.migration.command / config.migration.args.
  • charts/{portal,console-v3}/values.yaml: declare overridable defaults.

Default flip (feat(portal,console-v3): default to bundled-cjs entrypoint + migrate runner)

  • command / args default → [node_modules/.bin/react-router-serve] / [./build/server/index.js]
  • config.migration.command / config.migration.args default → [node] / [dist/migrate.cjs]

Consumers still running legacy pnpm-based images must override these values to keep the previous behavior — see migration notes in each chart's README.

Major bumps (chore(release)!)

Chart Before After Notes
portal 3.5.1 / v2.5.1 4.0.0 / v3.0.0 default entrypoint breaks legacy images
console-v3 3.5.1 / v2.5.1 4.0.0 / v3.0.0 same
cloudprem 4.6.2 5.0.0 deps portal/console-v3 3.X → 4.X
formance 1.10.1 2.0.0 dep cloudprem 4.X → 5.X

Migration sections added to cloudprem/README.md (with override snippet) and a new formance/README.md.gotmpl (so helm-docs preserves the migration block).

Tooling (chore(nix): bump goVersion to 25 and nixpkgs)

tools/readme/go.mod declares go 1.25.0; the nix-pinned golangci-lint was built with go1.24 and refused to load the config. Bumps the flake's goVersion to 25 and pinned nixpkgs so just lint / just pre-commit work again.

Verified

helm template t charts/portal     -n t  # deployment: react-router-serve, migrate: node dist/migrate.cjs
helm template t charts/console-v3 -n t  # same

# Override back to legacy pnpm image still works:
helm template t charts/portal -n t \
  --set 'command={pnpm}' --set 'args={start}' \
  --set 'config.migration.command={pnpm}' \
  --set 'config.migration.args={migrate,up}'

Override example (legacy pnpm image)

image:
  repository: ghcr.io/formancehq/portal
  tag: <legacy-pnpm-tag>
command: ["pnpm"]
args: ["start"]
config:
  migration:
    command: ["pnpm"]
    args: ["migrate", "up"]

Risk

  • Breaking for consumers pinning a legacy pnpm-bearing image without overriding command/args. Documented in each chart's Migration section; the major bumps signal it.
  • No-op for consumers already on a recent slim image tag.

@coderabbitai

coderabbitai Bot commented May 23, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@Dav-14, we couldn't start this review because you've used your available PR reviews for now.

Your plan includes 1 review of capacity. Refill in 17 minutes and 1 second.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more review capacity refills, 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 trial, open-source, and free plans. In all cases, review capacity refills continuously over time.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: def0098d-faf3-4711-83cf-674850759c52

📥 Commits

Reviewing files that changed from the base of the PR and between e8fa36e and 759505a.

⛔ Files ignored due to path filters (15)
  • charts/cloudprem/Chart.lock is excluded by !**/*.lock, !**/*.lock
  • charts/cloudprem/Chart.yaml is excluded by !**/*.yaml
  • charts/console-v3/Chart.yaml is excluded by !**/*.yaml
  • charts/console-v3/templates/deployment.yaml is excluded by !**/*.yaml
  • charts/console-v3/templates/job.yaml is excluded by !**/*.yaml
  • charts/console-v3/values.schema.json is excluded by !**/*.json
  • charts/console-v3/values.yaml is excluded by !**/*.yaml
  • charts/formance/Chart.lock is excluded by !**/*.lock, !**/*.lock
  • charts/formance/Chart.yaml is excluded by !**/*.yaml
  • charts/portal/Chart.yaml is excluded by !**/*.yaml
  • charts/portal/templates/deployment.yaml is excluded by !**/*.yaml
  • charts/portal/templates/job.yaml is excluded by !**/*.yaml
  • charts/portal/values.schema.json is excluded by !**/*.json
  • charts/portal/values.yaml is excluded by !**/*.yaml
  • flake.lock is excluded by !**/*.lock, !**/*.lock
📒 Files selected for processing (8)
  • README.md
  • charts/cloudprem/README.md
  • charts/cloudprem/README.md.gotmpl
  • charts/console-v3/README.md
  • charts/formance/README.md
  • charts/formance/README.md.gotmpl
  • charts/portal/README.md
  • flake.nix

Walkthrough

Coordinated Helm chart releases across four charts (Cloudprem 6.0.0, Console-V3 5.0.0, Portal 5.0.0, Formance 2.0.0) with migration guides documenting breaking changes in container entrypoints and migration runners, plus Go toolchain upgrade to 1.25.

Changes

Helm Chart Release Documentation

Layer / File(s) Summary
Root charts version overview
README.md
Root README charts version table updated with new versions for Cloudprem (6.0.0), Console-V3 (5.0.0), Formance (2.0.0), and Portal (5.0.0).
Console-V3 chart v5.0.0 release
charts/console-v3/README.md
Version badge bumped to 5.0.0 (AppVersion v3.0.0). New Helm values documented: migration job runner defaults (config.migration.command: node, config.migration.args: dist/migrate.cjs) and container entrypoint defaults (command: node_modules/.bin/react-router-serve, args: ./build/server/index.js).
Portal chart v5.0.0 release
charts/portal/README.md
Version badge bumped to 5.0.0 (AppVersion v3.0.0). New Helm values documented: migration configuration defaults (config.migration.args, config.migration.command: node) and container entrypoint defaults (command, args).
Cloudprem chart v6.0.0 release
charts/cloudprem/README.md, charts/cloudprem/README.md.gotmpl
Version badge bumped to 6.0.0. Requirements table updated for bundled console-v3 and portal v5 references. Migration section added describing v4.X.X→v6.0.0 breaking changes (container command/args now default to slim production entrypoints, migration runner uses node dist/migrate.cjs). Example YAML override provided for legacy pnpm-based images. Helm values expanded to document container and migration defaults for bundled charts.
Formance unified chart v2.0.0 release
charts/formance/README.md, charts/formance/README.md.gotmpl
Version badge bumped to 2.0.0. Requirements table updated to reference cloudprem v6.X. Migration section added describing v1.X.X→v2.0.0 transition (pulling cloudprem v6 upgrades portal and console-v3 to v5, changes container entrypoints and migration defaults). Template file populated with standard chart documentation structure and v1.X.X→v2.0.0 migration guide referencing cloudprem changes.

Go Toolchain Update

Layer / File(s) Summary
Go 1.25 toolchain
flake.nix
Nix flake overlays.default Go version bumped from go_1_23 to go_1_25.

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly Related PRs

  • formancehq/helm#360: Updates version badges for Console-V3 and Portal charts in the same README files as this PR.
  • formancehq/helm#372: Overlapping Helm chart documentation updates for Console-V3, Portal, and Formance version metadata.
  • formancehq/helm#361: Updates Helm chart version entries for Console-V3, Portal, and Formance in root and chart README files.

Suggested Reviewers

  • sylr

Poem

🐰 Charts dance in versions new,
Console-v3 and Portal too,
Migration guides light the way,
From old to modern, hip hooray!
Go 1.25 joins the crew—whoosh! 🎉

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'feat(portal,console-v3): make container command/args configurable' clearly and concisely summarizes the main change: making container command and args configurable through Helm values for the portal and console-v3 charts.
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.
Description check ✅ Passed The pull request description comprehensively explains the changes: exposing command/args through Helm values, flipping defaults to slim production entrypoints, and cascading major version bumps through dependent charts.

✏️ 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 feat/portal-console-v3-command-args-configurable

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.

@Dav-14 Dav-14 force-pushed the feat/portal-console-v3-command-args-configurable branch from bc9e6c5 to e8fa36e Compare May 25, 2026 13:46
@github-actions github-actions Bot added the docs label May 25, 2026
@Dav-14 Dav-14 marked this pull request as ready for review May 25, 2026 14:03
@Dav-14 Dav-14 requested a review from a team as a code owner May 25, 2026 14:03
@Dav-14 Dav-14 requested a review from BrieucCaillot May 25, 2026 14:04

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@charts/cloudprem/README.md`:
- Around line 285-301: The legacy override example uses incorrect pnpm commands;
update the migration and start commands under the portal and console-v3 blocks
so they match the previous pnpm usage: use "pnpm run start:prod" for starting
and "pnpm run db:migrate" for migrations. Locate the portal and console-v3 YAML
entries and replace the command/args pairs in both the main command and the
nested config.migration command to reflect "pnpm run start:prod" and "pnpm run
db:migrate" respectively so legacy pnpm-based images upgrade correctly.

In `@charts/cloudprem/README.md.gotmpl`:
- Around line 281-297: Update the template overrides so the portal and
console-v3 entries use the legacy pnpm run commands instead of plain pnpm;
specifically change the top-level command/args for "portal" and "console-v3" and
the nested config.migration.command/args to use "pnpm run start:prod" for
startup and "pnpm run db:migrate" for migrations (i.e., update the command/args
tuples for the portal and console-v3 blocks and their config.migration blocks to
reflect the legacy run scripts).

In `@charts/formance/README.md`:
- Around line 42-59: Update the pnpm commands in the override so they invoke the
legacy scripts instead of bare commands: for cloudprem.portal set command/args
to use ["pnpm","run","start:prod"] and for its migration config use
["pnpm","run","db:migrate"]; do the same for cloudprem.console-v3 (set
command/args to ["pnpm","run","start:prod"] and migration to
["pnpm","run","db:migrate"]). Locate the entries under cloudprem.portal and
cloudprem.console-v3 (their command/args and config.migration.command/args) and
replace the existing ["pnpm"] + ["start"/"migrate","up"] values accordingly.

In `@charts/formance/README.md.gotmpl`:
- Around line 30-47: Update the templated commands for legacy pnpm images: in
the cloudprem.portal and cloudprem.console-v3 blocks, change the service start
command from using args ["start"] to the production script invocation args
["run","start:prod"], and change the migration override from args
["migrate","up"] to the pnpm run migration invocation args ["run","db:migrate"];
locate the migration config blocks named migration under cloudprem.portal and
cloudprem.console-v3 and replace the args accordingly so the template documents
the backward-compatible commands.
🪄 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: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: dbefd547-8a85-4eba-b811-491b51b0244a

📥 Commits

Reviewing files that changed from the base of the PR and between 7d00546 and e8fa36e.

⛔ Files ignored due to path filters (15)
  • charts/cloudprem/Chart.lock is excluded by !**/*.lock, !**/*.lock
  • charts/cloudprem/Chart.yaml is excluded by !**/*.yaml
  • charts/console-v3/Chart.yaml is excluded by !**/*.yaml
  • charts/console-v3/templates/deployment.yaml is excluded by !**/*.yaml
  • charts/console-v3/templates/job.yaml is excluded by !**/*.yaml
  • charts/console-v3/values.schema.json is excluded by !**/*.json
  • charts/console-v3/values.yaml is excluded by !**/*.yaml
  • charts/formance/Chart.lock is excluded by !**/*.lock, !**/*.lock
  • charts/formance/Chart.yaml is excluded by !**/*.yaml
  • charts/portal/Chart.yaml is excluded by !**/*.yaml
  • charts/portal/templates/deployment.yaml is excluded by !**/*.yaml
  • charts/portal/templates/job.yaml is excluded by !**/*.yaml
  • charts/portal/values.schema.json is excluded by !**/*.json
  • charts/portal/values.yaml is excluded by !**/*.yaml
  • flake.lock is excluded by !**/*.lock, !**/*.lock
📒 Files selected for processing (8)
  • README.md
  • charts/cloudprem/README.md
  • charts/cloudprem/README.md.gotmpl
  • charts/console-v3/README.md
  • charts/formance/README.md
  • charts/formance/README.md.gotmpl
  • charts/portal/README.md
  • flake.nix

Comment on lines +285 to +301
```yaml
portal:
command: ["pnpm"]
args: ["start"]
config:
migration:
command: ["pnpm"]
args: ["migrate", "up"]

console-v3:
command: ["pnpm"]
args: ["start"]
config:
migration:
command: ["pnpm"]
args: ["migrate", "up"]
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Fix legacy override example to match actual previous pnpm commands.

The migration snippet uses pnpm start and pnpm migrate up, but the legacy behavior described in this PR context is pnpm run start:prod and pnpm run db:migrate. Following the current example can fail upgrades for existing pnpm-based images.

Suggested patch
 portal:
   command: ["pnpm"]
-  args: ["start"]
+  args: ["run", "start:prod"]
   config:
     migration:
       command: ["pnpm"]
-      args: ["migrate", "up"]
+      args: ["run", "db:migrate"]

 console-v3:
   command: ["pnpm"]
-  args: ["start"]
+  args: ["run", "start:prod"]
   config:
     migration:
       command: ["pnpm"]
-      args: ["migrate", "up"]
+      args: ["run", "db:migrate"]
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
```yaml
portal:
command: ["pnpm"]
args: ["start"]
config:
migration:
command: ["pnpm"]
args: ["migrate", "up"]
console-v3:
command: ["pnpm"]
args: ["start"]
config:
migration:
command: ["pnpm"]
args: ["migrate", "up"]
```
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@charts/cloudprem/README.md` around lines 285 - 301, The legacy override
example uses incorrect pnpm commands; update the migration and start commands
under the portal and console-v3 blocks so they match the previous pnpm usage:
use "pnpm run start:prod" for starting and "pnpm run db:migrate" for migrations.
Locate the portal and console-v3 YAML entries and replace the command/args pairs
in both the main command and the nested config.migration command to reflect
"pnpm run start:prod" and "pnpm run db:migrate" respectively so legacy
pnpm-based images upgrade correctly.

Comment on lines +281 to +297
```yaml
portal:
command: ["pnpm"]
args: ["start"]
config:
migration:
command: ["pnpm"]
args: ["migrate", "up"]

console-v3:
command: ["pnpm"]
args: ["start"]
config:
migration:
command: ["pnpm"]
args: ["migrate", "up"]
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Update template migration overrides to the real legacy pnpm commands.

This snippet currently suggests pnpm start / pnpm migrate up, which does not match the prior defaults described for legacy behavior (pnpm run start:prod and pnpm run db:migrate).

Suggested patch
 portal:
   command: ["pnpm"]
-  args: ["start"]
+  args: ["run", "start:prod"]
   config:
     migration:
       command: ["pnpm"]
-      args: ["migrate", "up"]
+      args: ["run", "db:migrate"]

 console-v3:
   command: ["pnpm"]
-  args: ["start"]
+  args: ["run", "start:prod"]
   config:
     migration:
       command: ["pnpm"]
-      args: ["migrate", "up"]
+      args: ["run", "db:migrate"]
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@charts/cloudprem/README.md.gotmpl` around lines 281 - 297, Update the
template overrides so the portal and console-v3 entries use the legacy pnpm run
commands instead of plain pnpm; specifically change the top-level command/args
for "portal" and "console-v3" and the nested config.migration.command/args to
use "pnpm run start:prod" for startup and "pnpm run db:migrate" for migrations
(i.e., update the command/args tuples for the portal and console-v3 blocks and
their config.migration blocks to reflect the legacy run scripts).

Comment thread charts/formance/README.md
Comment on lines +42 to +59
```yaml
cloudprem:
portal:
command: ["pnpm"]
args: ["start"]
config:
migration:
command: ["pnpm"]
args: ["migrate", "up"]

console-v3:
command: ["pnpm"]
args: ["start"]
config:
migration:
command: ["pnpm"]
args: ["migrate", "up"]
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Correct formance-level legacy override example for pnpm-based images.

The provided override uses pnpm start and pnpm migrate up; to preserve prior behavior it should use pnpm run start:prod and pnpm run db:migrate.

Suggested patch
 cloudprem:
   portal:
     command: ["pnpm"]
-    args: ["start"]
+    args: ["run", "start:prod"]
     config:
       migration:
         command: ["pnpm"]
-        args: ["migrate", "up"]
+        args: ["run", "db:migrate"]

   console-v3:
     command: ["pnpm"]
-    args: ["start"]
+    args: ["run", "start:prod"]
     config:
       migration:
         command: ["pnpm"]
-        args: ["migrate", "up"]
+        args: ["run", "db:migrate"]
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@charts/formance/README.md` around lines 42 - 59, Update the pnpm commands in
the override so they invoke the legacy scripts instead of bare commands: for
cloudprem.portal set command/args to use ["pnpm","run","start:prod"] and for its
migration config use ["pnpm","run","db:migrate"]; do the same for
cloudprem.console-v3 (set command/args to ["pnpm","run","start:prod"] and
migration to ["pnpm","run","db:migrate"]). Locate the entries under
cloudprem.portal and cloudprem.console-v3 (their command/args and
config.migration.command/args) and replace the existing ["pnpm"] +
["start"/"migrate","up"] values accordingly.

Comment on lines +30 to +47
```yaml
cloudprem:
portal:
command: ["pnpm"]
args: ["start"]
config:
migration:
command: ["pnpm"]
args: ["migrate", "up"]

console-v3:
command: ["pnpm"]
args: ["start"]
config:
migration:
command: ["pnpm"]
args: ["migrate", "up"]
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Fix templated migration override commands for legacy pnpm images.

This template currently documents pnpm start / pnpm migrate up; for backward-compat upgrades it should document pnpm run start:prod / pnpm run db:migrate.

Suggested patch
 cloudprem:
   portal:
     command: ["pnpm"]
-    args: ["start"]
+    args: ["run", "start:prod"]
     config:
       migration:
         command: ["pnpm"]
-        args: ["migrate", "up"]
+        args: ["run", "db:migrate"]

   console-v3:
     command: ["pnpm"]
-    args: ["start"]
+    args: ["run", "start:prod"]
     config:
       migration:
         command: ["pnpm"]
-        args: ["migrate", "up"]
+        args: ["run", "db:migrate"]
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
```yaml
cloudprem:
portal:
command: ["pnpm"]
args: ["start"]
config:
migration:
command: ["pnpm"]
args: ["migrate", "up"]
console-v3:
command: ["pnpm"]
args: ["start"]
config:
migration:
command: ["pnpm"]
args: ["migrate", "up"]
```
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@charts/formance/README.md.gotmpl` around lines 30 - 47, Update the templated
commands for legacy pnpm images: in the cloudprem.portal and
cloudprem.console-v3 blocks, change the service start command from using args
["start"] to the production script invocation args ["run","start:prod"], and
change the migration override from args ["migrate","up"] to the pnpm run
migration invocation args ["run","db:migrate"]; locate the migration config
blocks named migration under cloudprem.portal and cloudprem.console-v3 and
replace the args accordingly so the template documents the backward-compatible
commands.

Dav-14 added 2 commits May 25, 2026 16:44
The portal and console-v3 charts hardcoded `command: [pnpm]`,
`args: [run, start:prod]` for the deployment and `[pnpm, run, db:migrate]`
for the pre-install/upgrade migrate Job.

That breaks any consumer shipping a slim image without `pnpm` — the
prod-remix runtime in platform-ui PR #1194 strips pnpm to save ~30 MB
and unblock workspace pruning, but the chart then crashloops with
`exec: "pnpm": executable file not found`.

This commit exposes the two pairs through values:

  command: [pnpm]                          # default keeps current behaviour
  args:    [run, start:prod]
  config.migration.command: [pnpm]         # default keeps current behaviour
  config.migration.args:    [run, db:migrate]

Slim-image consumers override with e.g.:

  command: [node_modules/.bin/react-router-serve]
  args:    [./build/server/index.js]
  config.migration.enabled: false          # or override the command

No behaviour change for existing consumers — `helm template` against
the defaults emits identical YAML.

Chart version bumped to 3.6.0 (minor — additive, backward-compatible
values).
…runner

Flips the defaults landed earlier in this PR from "preserve historical pnpm
behaviour, let consumers override" to "match the new slim image out of the
box." Old `pnpm`-bearing images can still override values to restore the old
defaults.

- `command` / `args` default → `[node_modules/.bin/react-router-serve]` /
  `[./build/server/index.js]` (the slim prod-remix entrypoint).
- `config.migration.command` / `config.migration.args` default →
  `[node]` / `[dist/migrate.cjs]` (the bundled migration runner shipped by
  platform-ui#1195; SQL files at `./dist/migrations` resolved via the
  image's `MIGRATIONS_FOLDER` env).
- Chart versions: 3.6.0 → 4.0.0 (defaults break old-image consumers without
  an override, hence the major bump).

Verified:

  helm template t charts/portal      -n t  # deployment: react-router-serve, migrate: node dist/migrate.cjs
  helm template t charts/console-v3  -n t  # same
@Dav-14 Dav-14 force-pushed the feat/portal-console-v3-command-args-configurable branch from e8fa36e to faa9d95 Compare May 25, 2026 14:45
Dav-14 and others added 2 commits May 25, 2026 16:46
…udprem 5, formance 2

Cascades the breaking-default change from the previous commit (slim prod-remix
entrypoint: react-router-serve / node dist/migrate.cjs) through the dependency
tree:

- portal:     chart 3.5.1 -> 4.0.0, appVersion v2.5.1 -> v3.0.0
- console-v3: chart 3.5.1 -> 4.0.0, appVersion v2.5.1 -> v3.0.0
- cloudprem:  chart 4.6.2 -> 5.0.0, deps portal/console-v3 3.X -> 4.X
- formance:   chart 1.10.1 -> 2.0.0, dep cloudprem 4.X -> 5.X

Adds migration notes (and a new formance/README.md.gotmpl so helm-docs
preserves them) explaining how legacy pnpm-based images can override
command/args to keep the previous behavior.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
golangci-lint shipped via nix was built with go1.24 and failed to load
tools/readme (go 1.25.0). Bumping the flake's pinned nixpkgs + goVersion
to 25 fixes `just lint` / `just pre-commit`.

Also regenerates portal/console-v3 values.schema.json to include the
new top-level `command`/`args` and migration `command`/`args` fields.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Dav-14 Dav-14 force-pushed the feat/portal-console-v3-command-args-configurable branch from faa9d95 to 759505a Compare May 25, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant