Skip to content

feat(sn-console): align streamnative-console with sn-platform-slim#1267

Merged
tuteng merged 6 commits intomasterfrom
feature/sn-console-streamnative-console-changes
Mar 16, 2026
Merged

feat(sn-console): align streamnative-console with sn-platform-slim#1267
tuteng merged 6 commits intomasterfrom
feature/sn-console-streamnative-console-changes

Conversation

@tuteng
Copy link
Member

@tuteng tuteng commented Mar 13, 2026

  • Add DB_BASE=sqlite when image tag ends with -all
  • Add extraEnv for custom environment variables
  • Add dbPasswordSecret: mount secret as files, read DB_PASSWORD/NEW_PASSWORD in startup script

Made-with: Cursor

(If this PR fixes a github issue, please add Fixes #<xyz>.)

Fixes #

(or if this PR is one task of a github issue, please add Master Issue: #<xyz> to link to the master issue.)

Master Issue: #

Motivation

Explain here the context, and why you're making that change. What is the problem you're trying to solve.

Modifications

Describe the modifications you've done.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Documentation

Check the box below.

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

- Add DB_BASE=sqlite when image tag ends with -all
- Add extraEnv for custom environment variables
- Add dbPasswordSecret: mount secret as files, read DB_PASSWORD/NEW_PASSWORD in startup script

Made-with: Cursor
Copilot AI review requested due to automatic review settings March 13, 2026 01:20
@tuteng tuteng requested review from a team as code owners March 13, 2026 01:20
@github-actions
Copy link

@tuteng:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

@github-actions github-actions bot added the doc-info-missing This pr needs to mark a document option in description label Mar 13, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the sn-console Helm chart to support additional runtime configuration for the StreamNative Console container, including optional DB password injection and extra environment variables.

Changes:

  • Add extraEnv values to allow users to append arbitrary environment variables to the console container.
  • Add dbPasswordSecret values and StatefulSet wiring to mount a secret and expose DB_PASSWORD / NEW_PASSWORD to the entrypoint via a shell wrapper.
  • Set DB_BASE=sqlite automatically when the image tag ends with -all.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
charts/sn-console/values.yaml Introduces extraEnv and dbPasswordSecret chart values with usage examples.
charts/sn-console/templates/console/streamnative-console-statefulset.yaml Wires extraEnv, conditional DB_BASE, and secret mount + command wrapper for DB password export.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 344f922efb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

tuteng added 5 commits March 13, 2026 17:06
Expose CLUSTER_NAME env var in the console StatefulSet and add a values.yaml knob.
Set DEFAULT_ENVIRONMENT_SERVICE_URL default for private-cloud-proxy.

Made-with: Cursor
@tuteng tuteng merged commit 70b8862 into master Mar 16, 2026
1 check passed
@tuteng tuteng deleted the feature/sn-console-streamnative-console-changes branch March 16, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-info-missing This pr needs to mark a document option in description

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants