From a4f924f49d5e0fa20dba90a93f2345384e2c6b4c Mon Sep 17 00:00:00 2001 From: Vishal Yadav <44060199+mcaupybugs@users.noreply.github.com> Date: Tue, 20 Jun 2023 10:10:57 +0530 Subject: [PATCH] Adding warning for uninstall all while container runtime not running (#1310) Signed-off-by: Vishal Yadav Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com> Co-authored-by: Shubham Sharma --- pkg/standalone/uninstall.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/standalone/uninstall.go b/pkg/standalone/uninstall.go index ac13a00c4..c7431f561 100644 --- a/pkg/standalone/uninstall.go +++ b/pkg/standalone/uninstall.go @@ -96,6 +96,8 @@ func Uninstall(uninstallAll bool, dockerNetwork string, containerRuntime string, containerRuntimeAvailable = utils.IsContainerRuntimeInstalled(containerRuntime) if containerRuntimeAvailable { containerErrs = removeContainers(uninstallPlacementContainer, uninstallAll, dockerNetwork, runtimeCmd) + } else if uninstallPlacementContainer || uninstallAll { + print.WarningStatusEvent(os.Stdout, "WARNING: could not delete supporting containers as container runtime is not installed or running") } if uninstallAll {