Skip to content

fix(helm): Evaluate init.extraContainers templates - #31878

Merged
rusackas merged 13 commits into
apache:masterfrom
cin:evaluate_extraContainers_templates
Jun 17, 2026
Merged

rusackas merged 13 commits into
apache:masterfrom
cin:evaluate_extraContainers_templates

Conversation

@cin

@cin cin commented Jan 16, 2025 •

Copy link
Copy Markdown
Contributor

User description

SUMMARY

Fixes #31877. This PR simply renders templates in init.extraContainers.

TESTING INSTRUCTIONS

Create an extraContainers config that contains templates that need to be rendered.

init:
  extraContainers:
    - name: test-container
      image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
      command: ["/bin/bash", "-c"]
...

ADDITIONAL INFORMATION

  • Has associated issue: Fixes Evaluate Templates in init.extraContainers #31877
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

CodeAnt-AI Description

Render templates inside extraContainers for all deployments and the init job

What Changed

  • extraContainers values are now processed as templates before being added to pod specs for the init job and all deployments (web, worker, beat, flower, websockets)
  • Users can include templated expressions in extraContainers (for example referencing chart values) and those expressions will be rendered into the final container definitions
  • Prevents pods from receiving unrendered template strings in extraContainers that could cause invalid or misconfigured container specs

Impact

✅ Extra containers can use chart values
✅ Fewer misconfigured pods from unrendered templates
✅ Init job and all deployments accept templated extraContainers

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

@korbit-ai korbit-ai 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.

I've completed my review and didn't find any issues.

Need a new review? Comment /korbit-review on this PR and I'll review your latest changes.

Korbit Guide: Usage and Customization

Interacting with Korbit

  • You can manually ask Korbit to review your PR using the /korbit-review command in a comment at the root of your PR.
  • You can ask Korbit to generate a new PR description using the /korbit-generate-pr-description command in any comment on your PR.
  • Too many Korbit comments? I can resolve all my comment threads if you use the /korbit-resolve command in any comment on your PR.
  • Chat with Korbit on issues we post by tagging @korbit-ai in your reply.
  • Help train Korbit to improve your reviews by giving a 👍 or 👎 on the comments Korbit posts.

Customizing Korbit

  • Check out our docs on how you can make Korbit work best for you and your team.
  • Customize Korbit for your organization through the Korbit Console.

Current Korbit Configuration

General Settings ​
Setting Value
Review Schedule Automatic excluding drafts
Max Issue Count 10
Automatic PR Descriptions ❌
Issue Categories ​
Category Enabled
Naming ✅
Database Operations ✅
Documentation ✅
Logging ✅
Error Handling ✅
Systems and Environment ✅
Objects and Data Structures ✅
Readability and Maintainability ✅
Asynchronous Processing ✅
Design Patterns ✅
Third-Party Libraries ✅
Performance ✅
Security ✅
Functionality ✅

Feedback and Support

Note

Korbit Pro is free for open source projects 🎉

Looking to add Korbit to your team? Get started with a free 2 week trial here

@dosubot dosubot Bot added the deploy:helm label Jan 16, 2025

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Congrats on making your first PR and thank you for contributing to Superset! 🎉 ❤️

We hope to see you in our Slack community too! Not signed up? Use our Slack App to self-register.

@villebro

Copy link
Copy Markdown
Member

Hi @cin, a few questions:

  • Is there some reason you'd only render templates for the init job, but not the other deployments?
  • You will need to bump the chart version (I suggest installing the pre-commit hooks to automatically regenerate the Helm docs etc)

@cin

cin commented Jan 16, 2025

Copy link
Copy Markdown
Contributor Author

I just went with the minimal set of changes initially. I just added rendering of the other deployments' extraContainers. Easy enough to remove if it's not needed. Just installed pre-commit and will look into its usage -- probably tomorrow.

@rusackas

rusackas commented May 7, 2025

Copy link
Copy Markdown
Member

Any hope of resolving conflicts and bumping the helm chart? Would love to merge this and/or close the issue. I'll convert this to a Draft while it awaits touch-ups but it may eventually be closed as inactive at some point (though you could easily reopen it).

@rusackas
rusackas marked this pull request as draft May 7, 2025 23:14
@cin
cin force-pushed the evaluate_extraContainers_templates branch from 31c832e to a02db29 Compare May 8, 2025 19:15
@cin

cin commented May 8, 2025

Copy link
Copy Markdown
Contributor Author

Rebased on master and resolved conflicts.

@cin
cin marked this pull request as ready for review May 15, 2025 14:13

@korbit-ai korbit-ai 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.

I've completed my review and didn't find any issues.

Check out our docs on how you can make Korbit work best for you and your team.

Loving Korbit!? Share us on LinkedIn Reddit and X

@rusackas

Copy link
Copy Markdown
Member

Approving CI. Looks straightforward, but will need a code owner review from @villebro, who knows far more about helm than lil' ol' me.

@rusackas

Copy link
Copy Markdown
Member

Hi @cin! This PR has developed conflicts again. Could you rebase when you get a chance? @villebro - would you be able to review this helm fix?

@cin
cin force-pushed the evaluate_extraContainers_templates branch from 8dffa58 to 5afc179 Compare December 12, 2025 16:39
@codeant-ai-for-open-source

Copy link
Copy Markdown
Contributor

CodeAnt AI is reviewing your PR.

@codeant-ai-for-open-source codeant-ai-for-open-source Bot added the size:XS This PR changes 0-9 lines, ignoring generated files label Dec 12, 2025
@codeant-ai-for-open-source

Copy link
Copy Markdown
Contributor

CodeAnt AI finished reviewing your PR.

@codeant-ai-for-open-source

Copy link
Copy Markdown
Contributor

💡 Enhance Your PR Reviews

We noticed that 3 feature(s) are not configured for this repository. Enabling these features can help improve your code quality and workflow:

🚦 Quality Gates

Status: Quality Gates are not enabled at the organization level
Learn more about Quality Gates

🎫 Jira Ticket Compliance

Status: Jira credentials file not found. Please configure Jira integration in your settings
Learn more about Jira Integration

⚙️ Custom Rules

Status: No custom rules configured. Add rules via organization settings or .codeant/review.json in your repository
Learn more about Custom Rules


Want to enable these features? Contact your organization admin or check our documentation for setup instructions.

@cin

cin commented Dec 12, 2025

Copy link
Copy Markdown
Contributor Author

Hi @cin! This PR has developed conflicts again. Could you rebase when you get a chance? @villebro - would you be able to review this helm fix?

@rusackas Rebased and resolved conflicts. Should be ready for review.

@cin

cin commented Apr 28, 2026

Copy link
Copy Markdown
Contributor Author

FYI: this fix matters even more now that we need to run the MCP server as a sidecar. We need to be able to templatize the image at a minimum.

  extraContainers:
    - name: superset-mcp
      image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"

@bito-code-review

bito-code-review Bot commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #bdf69c

Actionable Suggestions - 0
Review Details
  • Files reviewed - 6 · Commit Range: f6c2c60..6ac216c
    • helm/superset/templates/deployment-beat.yaml
    • helm/superset/templates/deployment-flower.yaml
    • helm/superset/templates/deployment-worker.yaml
    • helm/superset/templates/deployment-ws.yaml
    • helm/superset/templates/deployment.yaml
    • helm/superset/templates/init-job.yaml
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@rusackas

rusackas commented Jun 1, 2026

Copy link
Copy Markdown
Member

Hi @cin — CI is failing on lint-test with:

chart version not ok. Needs a version bump!

The chart testing action requires Chart.yaml to bump its version field when any template file changes. You'll need:

1. Bump helm/superset/Chart.yaml version from 0.15.5 → 0.15.6:

version: 0.15.6

2. Regenerate helm/superset/README.md with helm-docs:

cd helm/superset
helm-docs

(If you don't have helm-docs locally, the pre-commit hook will also auto-run it when you commit.)

Those two changes should turn lint-test green. Thanks for the patience on this one!

@bito-code-review

bito-code-review Bot commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #d6c9a1

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 6ac216c..44b4e5f
    • helm/superset/Chart.yaml
  • Files skipped - 1
    • helm/superset/README.md - Reason: Filter setting
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@rusackas

rusackas commented Jun 15, 2026 •

Copy link
Copy Markdown
Member

@cin sorry to be a broken record, but this has drifted into conflicts again. Sorry, and thanks for the patience. One more rebase and I think we can finally get @villebro to look. The tpl change itself looks right to me. Let me know if you want me to take over the rebasing part (assuming I can push to your branch).

@cin

cin commented Jun 15, 2026

Copy link
Copy Markdown
Contributor Author

I merged master, updated the chart version and readme. LMK if you need anything else.

@rusackas rusackas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks for seeing it through. The helm chart support is being phased out in favor of the Kubernetes Operator, but I think this is all well and good for those using it now.

@rusackas

Copy link
Copy Markdown
Member

Other codeowners (e.g. @villebro) will need to approve this to merge it.

@cin

cin commented Jun 16, 2026

Copy link
Copy Markdown
Contributor Author

I'll be happy to not have to maintain my own fork for this feature. :) Thanks for pushing it through (or trying anyway) @rusackas! Now I need to look into the k8s operator apparently...

@rusackas rusackas added the merge-if-green If approved and tests are green, please go ahead and merge it for me label Jun 16, 2026
@bito-code-review

bito-code-review Bot commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #65a4f7

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 44b4e5f..b19e1d3
    • helm/superset/Chart.yaml
  • Files skipped - 1
    • helm/superset/README.md - Reason: Filter setting
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@rusackas
rusackas merged commit de390f2 into apache:master Jun 17, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deploy:helm merge-if-green If approved and tests are green, please go ahead and merge it for me size/S size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Evaluate Templates in init.extraContainers

3 participants