Skip to content
New issue

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

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

Already on GitHub? # to your account

policy-controller: add pre-delete hook #510

Merged
merged 3 commits into from
Apr 13, 2023

Conversation

hectorj2f
Copy link
Contributor

Description of the change

Add helm hook to pre-delete the leases.

closes #504

Existing or Associated Issue(s)

Additional Information

Checklist

  • Chart version bumped in Chart.yaml according to semver. Where applicable, update and bump the versions in any associated umbrella chart
  • Variables are documented in the values.yaml and added to the README.md. The helm-docs utility can be used to generate the necessary content. Use helm-docs --dry-run to preview the content.
  • JSON Schema generated.
  • List tests pass for Chart using the Chart Testing tool and the ct lint command.

Signed-off-by: Hector Fernandez <hector@chainguard.dev>
@hectorj2f hectorj2f requested review from eddiezane and cpanato April 12, 2023 10:56
@hectorj2f hectorj2f self-assigned this Apr 12, 2023
@hectorj2f hectorj2f added the bug Something isn't working label Apr 12, 2023
Signed-off-by: Hector Fernandez <hector@chainguard.dev>
@hectorj2f hectorj2f requested a review from eddiezane April 12, 2023 14:47
vaikas
vaikas previously approved these changes Apr 12, 2023
Copy link
Contributor

@vaikas vaikas left a comment

Choose a reason for hiding this comment

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

Sweet, thanks!

@eddiezane
Copy link
Member

Talked to Hector on Slack. There are still a few issues here. He's going to label some of the other resources to ensure there are no race conditions on deletion.

Signed-off-by: Hector Fernandez <hector@chainguard.dev>
@hectorj2f
Copy link
Contributor Author

This is ready for another review.

@hectorj2f hectorj2f requested a review from vaikas April 13, 2023 14:24
Copy link
Member

@eddiezane eddiezane left a comment

Choose a reason for hiding this comment

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

This looks great and I can no longer reproduce the issue! Thank you!!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

policy-controller: Uninstalling the chart does not clean up leases
4 participants