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 schema job cleanup by adding optional hook annotation #559

Closed

Conversation

FurqanHabibi
Copy link

What was changed

This PR adds optional chart hook annotations to schema job. This pre-install hook will make sure the job gets run before any other deployment, and will automatically cleans up the job after it's finished with a hook-delete-policy.

Why?

If the schema job is not garbage collected helm upgrades are not possible.
Also if the job doesn't get run first, other deployments can fail (at least initially) until the job is finished.

Checklist

  1. Closes [Bug] helm upgrade does not work if schema.enabled is true #554

  2. How was this tested:
    Run helm install, check the job runs first before any other deployment, and check the job gets deleted after completion.

  3. Any docs updates needed?
    I don't think there is any doc for this.

@FurqanHabibi FurqanHabibi requested a review from a team as a code owner September 19, 2024 05:36
@CLAassistant
Copy link

CLAassistant commented Sep 19, 2024

CLA assistant check
All committers have signed the CLA.

@robholland
Copy link
Contributor

Fixed by #564

@robholland robholland closed this Oct 9, 2024
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.

[Bug] helm upgrade does not work if schema.enabled is true
3 participants