Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(helm-chart): Fix broken PodDisruptionBudget due to introduction of extraLabels. #30966

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

theoriginalgri
Copy link
Contributor

SUMMARY

#30710 introduced extraLabels but broke the PodDisruptionBudgets due to pdb configs using "with" statements.

This is not catched by the linting since since checks are only performed with default values and PDBs are not enabled by default.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:

$ helm lint ./helm/superset --set "supersetNode.podDisruptionBudget.enabled=true"
engine.go:227: [INFO] Fail: Only one of minAvailable or maxUnavailable should be set
==> Linting ./helm/superset
[ERROR] templates/: template: superset/templates/pdb.yaml:34:18: executing "superset/templates/pdb.yaml" at <.Values.extraLabels>: nil pointer evaluating interface {}.extraLabels

Error: 1 chart(s) linted, 1 chart(s) failed

After:

$ helm lint ./helm/superset --set "supersetNode.podDisruptionBudget.enabled=true"
engine.go:227: [INFO] Fail: Only one of minAvailable or maxUnavailable should be set
==> Linting ./helm/superset

1 chart(s) linted, 0 chart(s) failed

TESTING INSTRUCTIONS

helm lint ./helm/superset --set "supersetNode.podDisruptionBudget.enabled=true"

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

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.
Copy link
Contributor

@github-actions github-actions bot left a comment

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.

Copy link
Member

@dpgaspar dpgaspar left a comment

Choose a reason for hiding this comment

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

Looks good, thank you for the fix. Please bump the chart version

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix

@villebro villebro merged commit 1102d41 into apache:master Nov 19, 2024
34 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.

3 participants