Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

don't exit on exceptions during uninstall #239

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

przemeklal
Copy link
Contributor

This fixes error when not all resources are removed when running cmk uninstall command and trying to remove object that has been already deleted.
Instead, a warning message is displayed when the resource already doesn't exist and the uninstall script continues execution, trying to remove remaining resources in the best effort mode.

Fixes #238.

This fixes error when not all resources are removed when running `cmk uninstall` command and trying to remove object that has been already deleted.
Instead, a warning message is displayed when the resource already doesn't exist and the uninstall script continues execution, trying to remove remaining resources in the best effort mode.
cbf123 added a commit to cbf123/CPU-Manager-for-Kubernetes that referenced this pull request May 23, 2019
When doing an uninstall it's not really an error if we try to remove
something that has already been removed. Add a few checks to cover this
scenario.

There's an upstream patch proposed which handles this a bit differently
which we may want to pick up instead, it basically just ignores all
errors on uninstall rather than being selective.
intel#239

Signed-off-by: Chris Friesen <[email protected]>
cbf123 added a commit to cbf123/CPU-Manager-for-Kubernetes that referenced this pull request Oct 24, 2019
When doing an uninstall it's not really an error if we try to remove
something that has already been removed. Add a few checks to cover this
scenario.

There's an upstream patch proposed which handles this a bit differently
which we may want to pick up instead, it basically just ignores all
errors on uninstall rather than being selective.
intel#239

Signed-off-by: Chris Friesen <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

failure during uninstall
1 participant