Improve cleanup (--delete-all) usage 61/98461/1
authorPetr Ospalý <p.ospaly@partner.samsung.com>
Fri, 15 Nov 2019 14:39:42 +0000 (15:39 +0100)
committerPetr Ospalý <p.ospaly@partner.samsung.com>
Fri, 15 Nov 2019 17:55:00 +0000 (18:55 +0100)
commit7e1861c6b8ba6a1de63a876248bbf4d02c9538ff
tree85c0feb981eb13753f978fded3eaffb954e81a7f
parent6d3fbfaffeeac4b41544713927616f70c2193b04
Improve cleanup (--delete-all) usage

It cleans all orphaned images and volumes on each kubernetes node:
    docker system prune --force --all --volumes

Also it now fixes the requirement for an override file when
'--clean-only' is used and it adds more kubernetes resource object to
redeploy.

+ improve help description
+ add use_help to not print all help when not asked
+ fix function name: redeploy_component -> undeploy_component
+ fix messages on some systems by switching echo to printf
+ fix grep to not match (e.g.) onap-bars when onap-bar was requested
+ add trap and fix terminal colors on abort

Issue-ID: OOM-2074

Change-Id: I54958d6e97febbda461bfb68f3829b002e7200b4
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
tools/helm-healer.sh