Visitar URL original
feat(helm): Add annotations to secrets manifests by Keonik1 · Pull Request #40803 · apache/superset · GitHub
Skip to content

feat(helm): Add annotations to secrets manifests - #40803

Merged
rusackas merged 5 commits into
apache:masterfrom
Keonik1:master
Jul 21, 2026
Merged

rusackas merged 5 commits into
apache:masterfrom
Keonik1:master

Conversation

@Keonik1

@Keonik1 Keonik1 commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor

SUMMARY

Added annotations for secrets manifests. These are required for the integration of external secret stores, such as Vault, in conjunction with the bank-vault webhook.

TESTING INSTRUCTIONS

  1. Specify Kubernetes annotations in the fields provided:
    • secretConfig.annotations
    • secretEnv.annotations
    • supersetWebsockets.configAnnotations
  2. Deploy helm to your cluster
  3. View the created secrets - they should contain the specified annotations

ADDITIONAL INFORMATION

  • Has associated issue:
  • 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

@bito-code-review

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

Copy link
Copy Markdown
Contributor

Code Review Agent Run #0c3e80

Actionable Suggestions - 0
Review Details
  • Files reviewed - 4 · Commit Range: 8ad52b7..4845f1e
    • helm/superset/templates/secret-env.yaml
    • helm/superset/templates/secret-superset-config.yaml
    • helm/superset/templates/secret-ws.yaml
    • helm/superset/values.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 evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

@rusackas

rusackas commented Jun 17, 2026 •

Copy link
Copy Markdown
Member

Two things before this can go in @Keonik1:

  • Needs a Chart.yaml version bump (and the README badge) or ct lint will reject it.
  • The three new values land in three different shapes: secretEnv.annotations, top-level secretConfigAnnotations, and supersetWebsockets.configAnnotations. Can we make them consistent? Nesting under the relevant block (e.g. secretEnv.annotations) reads cleaner than a top-level secretConfigAnnotations.

Updating the branch to re-run CI in the current state of affairs there.

@Keonik1

Keonik1 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

@rusackas Okay, I'll take a look at it later and see what to do with it.

@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. Not sure if @villebro has dealt with this (or needs to) in the Kubernetes Operator, but please feel free to try out that new approach and open a PR if this needs to be handled there too @Keonik1

I just re-read my prior comment, and got a little too excited about CI turning green when I approved this. Digging in, the websocket annotation isn't just inconsistently named, it's wired wrong:

  • templates/secret-ws.yaml reads .Values.configAnnotations (top-level)
  • but values.yaml defines it at supersetWebsockets.configAnnotations (line 686), and the README documents it there too.

So a user who sets the documented supersetWebsockets.configAnnotations key gets nothing applied — the template is reading a top-level key that doesn't exist. The other two (secretEnv.annotations, secretConfigAnnotations) are wired correctly.

@rusackas rusackas added the merge-if-green If approved and tests are green, please go ahead and merge it for me label Jun 18, 2026
@netlify

netlify Bot commented Jun 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit cea212f
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6a5fc9e27f64ee000803fb59
😎 Deploy Preview https://deploy-preview-40803--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@rusackas rusackas removed the merge-if-green If approved and tests are green, please go ahead and merge it for me label Jun 18, 2026

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

See above (corrected) comment... seems there's a bug to contend with here, but I think we're close to fixing it. Requesting changes to prevent an eager merge trigger finger (i.e. my own)

Also, I bumped the helm chart version which was previously failing (just trying to help) but it seems it caused some merge conflicts to tend to... I'll resolve those, my fault. Sorry for all the headaches. Good news is, I think we're almost done with all this helm chart maintenance difficulty ;)

@bito-code-review

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

Copy link
Copy Markdown
Contributor

Code Review Agent Run #76d1f2

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 4845f1e..2a40d47
    • 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 evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

@rusackas

Copy link
Copy Markdown
Member

Still want this in, @Keonik1, but it needs the Chart.yaml/README version bump and the three annotation fields normalized to one shape, plus a rebase on master. I'll see if I can help with the rebase for now, wish me luck.

@Keonik1

Keonik1 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

Hello, @rusackas
I made the changes:

  • Changed secretConfigAnnotations to secretConfig.annotations. The others seem to make sense as is. The annotations field makes sense in secretEnv, and supersetWebsockets also has deploymentAnnotations and podAnnotations fields, so overall it makes sense to use the configAnnotations field as well
  • Fixed supersetWebsockets.configAnnotations; it should now apply correctly
  • Updated the version to 0.17.4 in chart.yaml and the README

@Keonik1
Keonik1 requested a review from rusackas June 25, 2026 09:23
@bito-code-review

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

Copy link
Copy Markdown
Contributor

Code Review Agent Run #1884cc

Actionable Suggestions - 0
Review Details
  • Files reviewed - 3 · Commit Range: 2a40d47..7c68ed5
    • helm/superset/templates/secret-superset-config.yaml
    • helm/superset/templates/secret-ws.yaml
    • helm/superset/values.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 evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

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

Thanks @Keonik1, the secretConfig.annotations rename and keeping deploymentAnnotations/podAnnotations as-is on supersetWebsockets makes sense to me too, and the websocket wiring bug is fixed. LGTM, just needs a rebase on master and I'll take another look. Holler if you want any help with any of the above :D

Keonik1 and others added 5 commits July 21, 2026 12:24
Bump the chart version and regenerate the README so the new
secret annotation options ship under a fresh chart release.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@bito-code-review

bito-code-review Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #29d3dc

Actionable Suggestions - 0
Additional Suggestions - 1
  • helm/superset/templates/secret-superset-config.yaml - 1
    • Missing test coverage for new feature · Line 27-29
      The new `secretConfig.annotations` conditional is syntactically correct and follows established patterns from `secret-env.yaml` and `serviceaccount.yaml`. However, the test suite in `config_test.yaml` (line 19) tests this template but has no coverage for the annotations feature. Consider adding tests to verify: (1) annotations render when `secretConfig.annotations` is set, (2) annotations are omitted when not set (default case). This ensures the feature doesn't regress and documents the expected behavior.
Review Details
  • Files reviewed - 5 · Commit Range: dcd11dc..cea212f
    • helm/superset/Chart.yaml
    • helm/superset/templates/secret-env.yaml
    • helm/superset/templates/secret-superset-config.yaml
    • helm/superset/templates/secret-ws.yaml
    • helm/superset/values.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 evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

@rusackas

Copy link
Copy Markdown
Member

LGTM now after the rebase... merging!

@rusackas
rusackas merged commit 8b1ef3a into apache:master Jul 21, 2026
51 checks passed
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.

2 participants