Skip to content

Adding extra Env - #526

Open
andrleite wants to merge 2 commits into
masterfrom
chore/mm-operator-adding-extraEnv
Open

andrleite wants to merge 2 commits into
masterfrom
chore/mm-operator-adding-extraEnv

Conversation

@andrleite

@andrleite andrleite commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

This pull request updates the Mattermost Operator deployment template to improve configuration flexibility and environment variable management.

Deployment configuration improvements:

  • Added the OPERATOR_IMAGE environment variable, exposing the operator image and tag to the container environment.
  • Added support for injecting additional environment variables via the mattermostOperator.extraEnv Helm value, allowing users to specify extra environment variables in their deployment.

@coderabbitai

coderabbitai Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 3d1db9b3-1f3f-435e-b29e-a97446e9c5d1

📥 Commits

Reviewing files that changed from the base of the PR and between 5fe02ca and c1c5b2a.

📒 Files selected for processing (1)
  • charts/mattermost-operator/templates/mattermost-operator/deployment.yaml

Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The Mattermost Operator Deployment now sets OPERATOR_IMAGE from the configured image values and conditionally renders .Values.mattermostOperator.extraEnv entries.

Changes

Operator environment configuration

Layer / File(s) Summary
Configure operator container environment
charts/mattermost-operator/templates/mattermost-operator/deployment.yaml
The template sets OPERATOR_IMAGE to the configured repository and tag. When extraEnv is configured, the template adds its entries to the container environment.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to c1c5b

The chart adds the requested operator image and optional environment-variable configuration without an evidenced deployment risk.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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 description accurately summarizes the added OPERATOR_IMAGE variable and support for additional environment variables through mattermostOperator.extraEnv.
Title check ✅ Passed The title identifies the main change: support for additional environment variables in the Mattermost Operator deployment.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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

This branch has not been deployed

No deployments
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