Skip to content

Allow post-delete job to be disabled #2104

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

Closed

Conversation

alekseysen
Copy link
Contributor

There are situations where the modifications performed by the NFD need to be preserved even after its removal.

One such use case arises when NFD is installed as part of another project. By design, uninstalling the parent project does not remove all its components. However, the remaining components still rely on the labels created by NFD. If NFD is removed, these labels will be deleted, causing dependent components to fail.

To maintain system integrity and ensure continued functionality, adding the 'postDeleteCleanup' option that allows any modifications made by NFD to be preserved upon its removal.

There are situations where the modifications performed by the NFD need to be
preserved even after its removal.

One such use case arises when NFD is installed as part of another project. By
design, uninstalling the parent project does not remove all its components.
However, the remaining components still rely on the labels created by NFD. If
NFD is removed, these labels will be deleted, causing dependent components to
fail.

To maintain system integrity and ensure continued functionality, adding the
'postDeleteCleanup' option that allows any modifications made by NFD to be
preserved upon its removal.

Signed-off-by: Aleksey Senin <[email protected]>
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 25, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @alekseysen. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Mar 25, 2025
Copy link

netlify bot commented Mar 25, 2025

Deploy Preview for kubernetes-sigs-nfd ready!

Name Link
🔨 Latest commit bdb65e8
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-nfd/deploys/67e2bb458f192c0008102047
😎 Deploy Preview https://deploy-preview-2104--kubernetes-sigs-nfd.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@alekseysen
Copy link
Contributor Author

Hi @marquiz ,
I did something wrong with original PR #2076 . Could you review a new one, please?

Changes:
renamed the variable to postDeleteCleanup
Added a documentation

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: alekseysen, ozhuraki
Once this PR has been reviewed and has the lgtm label, please assign arangogutierrez for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@alekseysen alekseysen closed this Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants