Skip to content

feat(helm-chart): Add extraLabels to all resources - #30710

Merged
villebro merged 5 commits into
apache:masterfrom
maxforasteiro:feat/add-global-extra-labels
Oct 27, 2024
Merged

feat(helm-chart): Add extraLabels to all resources#30710
villebro merged 5 commits into
apache:masterfrom
maxforasteiro:feat/add-global-extra-labels

Conversation

@maxforasteiro

Copy link
Copy Markdown
Contributor

SUMMARY

Some orgs require all Kubernetes resources to be labeled. Adding a non-breaking change that will allow our team to use Superset helm chart without having to copy/paste and modify it ourselves.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

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

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

I like this idea. However, while I kind of like the global prefix, I'm wondering if it may be unnecessary. I believe we may already have some other global-like values that would seem non-global after this change. But I'm not super opinionated here.

Anyway, the main comment here applies to the labels not applying to the templates. Let's either apply them to those, too, or add a comment that they're not covered by this new property.

Comment thread helm/superset/values.yaml Outdated
@maxforasteiro

Copy link
Copy Markdown
Contributor Author

I like this idea. However, while I kind of like the global prefix, I'm wondering if it may be unnecessary. I believe we may already have some other global-like values that would seem non-global after this change. But I'm not super opinionated here.

Anyway, the main comment here applies to the labels not applying to the templates. Let's either apply them to those, too, or add a comment that they're not covered by this new property.

I agree with your comment, the global label can be misleading indeed.

@villebro villebro 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 the improvement 🙇

@villebro

Copy link
Copy Markdown
Member

Oh, please bump the version!

@maxforasteiro

Copy link
Copy Markdown
Contributor Author

Oh, please bump the version!

nice catch! completely forgot 🙈

@maxforasteiro maxforasteiro changed the title feat(helm-chart): Add global.extraLabels to all resources feat(helm-chart): Add extraLabels to all resources Oct 25, 2024
@villebro

Copy link
Copy Markdown
Member

Seems there's a linting issue:
image
I didn't look closely at it, let me know if you need help resolving it.

@maxforasteiro

Copy link
Copy Markdown
Contributor Author

@villebro fixed. Sorry for the delay

@villebro
villebro merged commit c03bf80 into apache:master Oct 27, 2024
theoriginalgri added a commit to theoriginalgri/superset that referenced this pull request Nov 18, 2024
apache#30710 introduced extraLabels but broke the PodDisruptionBudgets due to pdb configs using "with" statements.

This is not catched by the linting since linting only checks with default values.
nyohasstium pushed a commit to Webgains/superset that referenced this pull request Jan 2, 2025
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 5.0.0 First shipped in 5.0.0 labels Jul 29, 2025
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels deploy:helm size/M 🚢 5.0.0 First shipped in 5.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants