Skip to content

Conversation

@flemzord
Copy link
Member

@flemzord flemzord commented Jan 7, 2026

Summary

  • Add MANAGED_STACK environment variable to Portal and Console-V3 deployments
  • Default value is "1" (enabled), can be set to "0" to disable
  • Upgrade Portal appVersion from v1.17.5 to v1.17.6

Chart version bumps

Chart Before After
portal 3.0.0-beta.5 3.0.0-beta.6
console-v3 3.0.0-beta.5 3.0.0-beta.6
cloudprem 4.0.0-beta.10 4.0.0-beta.11

Usage

To disable managed stack mode:

portal:
  config:
    managedStack: "0"

console-v3:
  config:
    managedStack: "0"

Test plan

  • Verify Portal deployment includes MANAGED_STACK=1 env var
  • Verify Console-V3 deployment includes MANAGED_STACK=1 env var
  • Verify override to "0" works correctly

@flemzord flemzord requested a review from a team as a code owner January 7, 2026 13:47
@coderabbitai
Copy link

coderabbitai bot commented Jan 7, 2026

Walkthrough

Version bumps: Cloudprem 4.0.0-beta.10 → 4.0.0-beta.11; Console-V3 and Portal 3.0.0-beta.5 → 3.0.0-beta.6 (Portal AppVersion v1.17.5 → v1.17.6). Added config.managedStack (string, default "1") and exposed it as MANAGED_STACK env var in templates; Console-V3 also adjusts API_URL handling.

Changes

Cohort / File(s) Summary
Root & Chart READMEs
README.md, charts/cloudprem/README.md, charts/console-v3/README.md, charts/portal/README.md
Updated Version/AppVersion badges for Cloudprem, Console-V3, Portal; documented new config.managedStack (string, default "1") and Portal AppVersion bump to v1.17.6.
Helm template helpers / env vars
charts/console-v3/templates/_helpers.tpl, charts/portal/templates/_helpers.tpl
Added MANAGED_STACK env var sourced from .Values.config.managedStack (quoted). console-v3 also adds/adjusts API_URL logic alongside existing Stargate/global branching.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 I tweak a chart with gentle hop,

Versions nudged and flags set up,
A quoted var, a tiny seam,
Envs aligned to run the dream,
Hop, deploy — I munch a carrot-top.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The PR title clearly and accurately summarizes the main change: adding MANAGED_STACK environment variable to Portal and Console-V3 components.
Description check ✅ Passed The PR description is comprehensive and directly related to the changeset, detailing the new MANAGED_STACK variable, version bumps, usage examples, and test plan.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/add-managed-stack-env-var

📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 16fa7c4 and 0f9ae51.

⛔ Files ignored due to path filters (8)
  • 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/values.schema.json is excluded by !**/*.json
  • charts/console-v3/values.yaml is excluded by !**/*.yaml
  • charts/portal/Chart.yaml is excluded by !**/*.yaml
  • charts/portal/values.schema.json is excluded by !**/*.json
  • charts/portal/values.yaml is excluded by !**/*.yaml
📒 Files selected for processing (6)
  • README.md
  • charts/cloudprem/README.md
  • charts/console-v3/README.md
  • charts/console-v3/templates/_helpers.tpl
  • charts/portal/README.md
  • charts/portal/templates/_helpers.tpl
🚧 Files skipped from review as they are similar to previous changes (4)
  • charts/portal/README.md
  • charts/portal/templates/_helpers.tpl
  • charts/console-v3/templates/_helpers.tpl
  • charts/console-v3/README.md
🧰 Additional context used
🪛 LanguageTool
README.md

[style] ~12-~12: Using many exclamation marks might seem excessive (in this case: 9 exclamation marks for a text that’s 2743 characters long)
Context: ...tions, users, roles, and permissions. | Artifact HUB | | Portal | 3.0.0-beta.6 | v1.17.6 | Formance Portal | Artifact HUB | | Regions | 3.5.4 | latest | Formance Private Regions Helm Chart | Artifact HUB | | Stargate | 0.8.1 | latest | Formance EE Stargate gRPC Gateway | [![Artifact HUB](https://img.shields.io/en...

(EN_EXCESSIVE_EXCLAMATION)

🔇 Additional comments (4)
charts/cloudprem/README.md (2)

4-4: Version badge accurately reflects chart bump.

The cloudprem chart version is correctly updated from 4.0.0-beta.10 to 4.0.0-beta.11, aligning with the PR objectives.


563-563: Configuration options properly documented with clear descriptions.

Both console-v3.config.managedStack and portal.config.managedStack are well-documented in the values table with appropriate defaults ("1") and descriptions matching the feature intent. Documentation format is consistent with existing entries.

Also applies to: 699-699

README.md (2)

8-8: Verify Console-V3 app version update alignment.

Line 8 (Cloudprem) and line 13 (Portal) show correct version updates per PR objectives. However, line 9 shows Console-V3 app version updated to v1.17.6, which is not mentioned in the PR objectives—only Portal's upgrade to v1.17.6 is documented. Confirm this is intentional (e.g., both components versioned together) or if Console-V3 should retain a different version.

Also applies to: 13-13


1-16: Request verification of template implementations for MANAGED_STACK feature.

The README files document the new config.managedStack configuration options and version bumps correctly. However, the actual template files (e.g., charts/console-v3/templates/ and charts/portal/templates/) that implement the MANAGED_STACK environment variable injection are not included in this review. Per the AI summary, these templates should set the MANAGED_STACK env var sourced from .Values.config.managedStack.

Please confirm that:

  1. Console-V3 and Portal deployment templates properly expose MANAGED_STACK environment variable from config.managedStack
  2. The default behavior (MANAGED_STACK=1) is correctly implemented
  3. The override mechanism (setting to "0") works as intended

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

Copy link

@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

🤖 Fix all issues with AI agents
In @charts/console-v3/templates/_helpers.tpl:
- Around line 72-73: Add a new values.yaml containing sensible defaults for the
chart’s referenced config keys so templates referencing
.Values.config.managedStack and .Values.config.environment do not fail;
specifically include config.managedStack: "1" (string) to match the documented
default, add config.environment (e.g., "production" or an empty string) and any
other config.* keys referenced by templates, and ensure the file is committed to
the chart so helm render/deploy has those defaults available.

In @charts/portal/templates/_helpers.tpl:
- Around line 57-58: The chart is missing a local values file so the template
reference to .Values.config.managedStack is undefined; add a
charts/portal/values.yaml file that defines the documented defaults, at minimum
setting config.managedStack: "1", and include any other documented defaults from
README.md so templates like the MANAGED_STACK env value can render standalone;
ensure the file is committed alongside the chart so the template snippet
referencing .Values.config.managedStack | quote resolves correctly.
🧹 Nitpick comments (1)
charts/cloudprem/README.md (1)

563-563: Documentation is clear and consistent.

The new managedStack configuration options are well-documented for both console-v3 and portal with clear type, default value, and usage description.

📝 Optional: Consider adding more context

The documentation could be enhanced by briefly explaining what "managed stack mode" enables or how it affects the application behavior. This would help users understand when they might want to disable it.

Example:

-| console-v3.config.managedStack | string | `"1"` | Enable managed stack mode (1 = enabled, 0 = disabled) |
+| console-v3.config.managedStack | string | `"1"` | Enable managed stack mode to allow stack management operations through the console (1 = enabled, 0 = disabled) |

Also applies to: 699-699

📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 36bbe2e and f08da39.

⛔ Files ignored due to path filters (8)
  • 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/values.schema.json is excluded by !**/*.json
  • charts/console-v3/values.yaml is excluded by !**/*.yaml
  • charts/portal/Chart.yaml is excluded by !**/*.yaml
  • charts/portal/values.schema.json is excluded by !**/*.json
  • charts/portal/values.yaml is excluded by !**/*.yaml
📒 Files selected for processing (6)
  • README.md
  • charts/cloudprem/README.md
  • charts/console-v3/README.md
  • charts/console-v3/templates/_helpers.tpl
  • charts/portal/README.md
  • charts/portal/templates/_helpers.tpl
🧰 Additional context used
🪛 LanguageTool
README.md

[style] ~12-~12: Using many exclamation marks might seem excessive (in this case: 9 exclamation marks for a text that’s 2743 characters long)
Context: ...tions, users, roles, and permissions. | Artifact HUB | | Portal | 3.0.0-beta.6 | v1.17.6 | Formance Portal | Artifact HUB | | Regions | 3.5.4 | latest | Formance Private Regions Helm Chart | Artifact HUB | | Stargate | 0.8.1 | latest | Formance EE Stargate gRPC Gateway | [![Artifact HUB](https://img.shields.io/en...

(EN_EXCESSIVE_EXCLAMATION)

🔇 Additional comments (6)
charts/portal/README.md (2)

3-3: Version badge correctly updated.

Portal chart version bumped to 3.0.0-beta.6 with AppVersion v1.17.6 as per PR objectives.


90-90: New config.managedStack parameter properly documented.

Clear description of the managed stack mode configuration with explicit enable/disable values. Documentation is consistent with the parameter's purpose. Verified that the MANAGED_STACK environment variable is correctly injected into the Portal deployment template using the config.managedStack value in charts/portal/templates/_helpers.tpl with proper quoting for YAML safety.

charts/console-v3/README.md (2)

3-3: Version badge correctly updated for Console-V3.

Chart version bumped to 3.0.0-beta.6 with AppVersion remaining at v1.17.5, consistent with main README.


87-87: Parameter documentation verified and consistent with implementation.

MANAGED_STACK environment variable is correctly injected in _helpers.tpl using {{ .Values.config.managedStack | quote }}, matching the README documentation with identical description ("Enable managed stack mode (1 = enabled, 0 = disabled)") and default value ("1"). Placement is appropriate in the configuration hierarchy.

README.md (1)

8-8: Chart versions correctly updated across all files.

All version bumps are accurately reflected in both the main README table and Cloudprem chart metadata:

  • Cloudprem: 4.0.0-beta.11 ✓
  • Console-V3: 3.0.0-beta.6 (AppVersion v1.17.5) ✓
  • Portal: 3.0.0-beta.6 (AppVersion v1.17.6) ✓
charts/cloudprem/README.md (1)

4-4: LGTM! Version bump is correct.

The version badge update from 4.0.0-beta.10 to 4.0.0-beta.11 aligns with the PR objectives.

Comment on lines +72 to +73
- name: MANAGED_STACK
value: {{ .Values.config.managedStack | quote }}
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check if console-v3/values.yaml exists and contains managedStack

fd -t f "values.yaml" charts/console-v3 --exec cat {} \; | grep -A 2 -B 2 "managedStack"

Repository: formancehq/helm

Length of output: 41


🏁 Script executed:

#!/bin/bash
# Check if values.yaml exists and show config section

if fd -t f "values.yaml" charts/console-v3; then
  echo "=== values.yaml found, showing config section ==="
  fd -t f "values.yaml" charts/console-v3 --exec cat {} \; | head -100
  echo ""
  echo "=== Checking for 'config:' section ==="
  fd -t f "values.yaml" charts/console-v3 --exec cat {} \; | grep -A 20 "^config:"
else
  echo "values.yaml not found"
fi

Repository: formancehq/helm

Length of output: 148


🏁 Script executed:

#!/bin/bash
# List the charts/console-v3 directory structure
echo "=== Directory listing of charts/console-v3 ==="
ls -la charts/console-v3/

echo ""
echo "=== Find all YAML files in charts/console-v3 ==="
fd -t f "\\.yaml$|values" charts/console-v3

echo ""
echo "=== Check for values.yaml with full path and size ==="
find charts/console-v3 -name "values.yaml" -exec ls -lh {} \; -exec wc -l {} \;

echo ""
echo "=== Show full content of values.yaml if it exists ==="
find charts/console-v3 -name "values.yaml" -exec cat {} \;

Repository: formancehq/helm

Length of output: 621


🏁 Script executed:

#!/bin/bash
# Check for values.yaml in parent directories and other charts
echo "=== Look for values.yaml in charts directory ==="
find charts -name "values.yaml" -type f

echo ""
echo "=== Check portal chart structure mentioned in review ==="
ls -la charts/portal*/

echo ""
echo "=== Check if there's a values.yaml at repo root ==="
find . -maxdepth 2 -name "values.yaml" -type f

Repository: formancehq/helm

Length of output: 574


🏁 Script executed:

#!/bin/bash
# Check the templates directory and the _helpers.tpl file
echo "=== List templates directory ==="
ls -la charts/console-v3/templates/

echo ""
echo "=== Show _helpers.tpl content (lines 70-75) ==="
find charts/console-v3/templates -name "_helpers.tpl" -exec head -80 {} \; | tail -15

Repository: formancehq/helm

Length of output: 871


Create charts/console-v3/values.yaml with default configuration values.

The Helm chart references .Values.config.managedStack and .Values.config.environment in the template but no values.yaml file exists in charts/console-v3. This will cause deployment failures. Create a values.yaml file with default values including config.managedStack: "1" to match the documented default and provide sensible defaults for all referenced configuration keys.

🤖 Prompt for AI Agents
In @charts/console-v3/templates/_helpers.tpl around lines 72 - 73, Add a new
values.yaml containing sensible defaults for the chart’s referenced config keys
so templates referencing .Values.config.managedStack and
.Values.config.environment do not fail; specifically include
config.managedStack: "1" (string) to match the documented default, add
config.environment (e.g., "production" or an empty string) and any other
config.* keys referenced by templates, and ensure the file is committed to the
chart so helm render/deploy has those defaults available.

- Add MANAGED_STACK environment variable with default value "1"
- Add API_URL env var to Console-V3 (same value as API_STACK_URL) for prod compatibility
- Upgrade Portal appVersion to v1.17.6
- Upgrade Console-V3 appVersion to v1.17.6
- Bump chart versions:
  - portal: 3.0.0-beta.5 -> 3.0.0-beta.6
  - console-v3: 3.0.0-beta.5 -> 3.0.0-beta.6
  - cloudprem: 4.0.0-beta.10 -> 4.0.0-beta.11
@flemzord flemzord force-pushed the feat/add-managed-stack-env-var branch from 16fa7c4 to 0f9ae51 Compare January 7, 2026 14:04
@flemzord flemzord enabled auto-merge January 7, 2026 14:37
@reslene reslene self-requested a review January 7, 2026 14:41
@flemzord flemzord added this pull request to the merge queue Jan 7, 2026
Merged via the queue into main with commit 7413417 Jan 7, 2026
6 checks passed
@flemzord flemzord deleted the feat/add-managed-stack-env-var branch January 7, 2026 14:43
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.

3 participants