Skip to content

Conversation

a-thomas-22
Copy link
Collaborator

@a-thomas-22 a-thomas-22 commented Jul 16, 2025

What this PR does / why we need it:

Adds validation to detect when env-prefix conflicts with service names, preventing Kubernetes service environment variables from being interpreted as configuration keys. This resolves cryptic configuration errors when release names start with the env-prefix (e.g., using env-prefix: "NITRO" with release name nitro-sepolia causes NITRO_SEPOLIA_SERVICE_HOST to be parsed as config key sepolia).

Which issue this PR fixes

Fixes configuration conflicts that cause nitro nodes to crash with "invalid keys" errors when service names conflict with env-prefix.

Special notes for your reviewer:

  • The validation only runs when env-prefix is set, allowing flexibility for deployments that don't use environment variable configuration
  • Error message provides clear guidance on how to resolve the conflict
  • Chart version bumped to 0.7.8

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • CI checks pass
  • Chart Version bumped
  • Variables are tagged appropriately (used for generating the README)

…icts

Add validation to detect when env-prefix conflicts with service names,
preventing Kubernetes service environment variables from being interpreted
as configuration keys. This resolves issues where release names starting
with the env-prefix cause cryptic configuration errors.
@a-thomas-22 a-thomas-22 requested a review from a team as a code owner July 16, 2025 18:49
Copy link

Chart Installation Test succeeded ✅

The chart installation test for commit c84960a81b501a8563004b601501ba0f6b731dbe has succeeded.

Changed charts: charts/nitro

View workflow run
View unprivileged test run

@a-thomas-22 a-thomas-22 marked this pull request as draft July 16, 2025 18:56
@a-thomas-22 a-thomas-22 marked this pull request as ready for review July 17, 2025 08:28
@a-thomas-22 a-thomas-22 merged commit cff1f96 into main Jul 17, 2025
7 checks passed
@a-thomas-22 a-thomas-22 deleted the feat/nitro-env-prefix-validation branch July 17, 2025 08:28
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.

3 participants