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

bug: delete NCP on Helm uninstall #647

Merged
merged 1 commit into from
Oct 18, 2023
Merged

Conversation

rollandf
Copy link
Member

In PR #593, the creation of the NicClusterPolicy CR via Helm has been marked to be done with Helm "post-install,post-upgrade".

As a result, when Helm was uninstalled, the CR was not deleted.

In order to keep previous behavior, a new post-delete hook is introduced to delete the CR if it was created by Helm.

@adrianchiris
Copy link
Collaborator

nit: could you rename the file to be suffixed with "-hook"
just so its clearer what this file is.

(we should rename the one on insstall as well)

Copy link
Collaborator

@adrianchiris adrianchiris left a comment

Choose a reason for hiding this comment

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

minor comment

Copy link
Collaborator

@e0ne e0ne left a comment

Choose a reason for hiding this comment

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

LGTM. It could be merged once CI succeed

In PR Mellanox#593, the creation of the NicClusterPolicy CR via Helm
has been marked to be done with Helm "post-install,post-upgrade".

As a result, when Helm was uninstalled, the CR was not deleted.

In order to keep previous behavior, a new post-delete hook is
introduced to delete the CR if it was created by Helm.

Signed-off-by: Fred Rolland <frolland@nvidia.com>
@rollandf rollandf merged commit 02c38ec into Mellanox:master Oct 18, 2023
15 checks passed
@rollandf rollandf deleted the delete-cr-helm branch February 28, 2024 08:11
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.

None yet

3 participants