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

EVEREST-1732 | Fix pre-delete hook (DB resource cleanup) #440

Merged
merged 3 commits into from
Dec 10, 2024

Conversation

mayankshah1607
Copy link
Member

  • update the Job RBAC so that --wait works correctly. Currently, without the get and watch permissions, --wait doesn't actually wait for the deletion and fails silently
  • add appropriate hook weight so that the DB clean-up always runs first

@@ -56,6 +61,7 @@ metadata:
annotations:
"helm.sh/hook": pre-delete
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "-1"
Copy link
Member Author

Choose a reason for hiding this comment

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

Helm sorts the hooks based on the ascending order of the weight, so in this case, -1 runs before all

Signed-off-by: Mayank Shah <[email protected]>
@mayankshah1607 mayankshah1607 marked this pull request as ready for review December 9, 2024 15:52
@mayankshah1607 mayankshah1607 requested a review from a team as a code owner December 9, 2024 15:52
@mayankshah1607 mayankshah1607 merged commit 833deeb into main Dec 10, 2024
3 checks passed
@mayankshah1607 mayankshah1607 deleted the EVEREST-1732 branch December 10, 2024 07:49
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.

2 participants