summaryrefslogtreecommitdiffstats
path: root/tools/helm-healer.sh
AgeCommit message (Collapse)AuthorFilesLines
2020-09-23Refactor helm-healer scriptMateusz Pilat1-68/+122
Extending helm-helper.sh funtionalities: -detecting orphaned resources -removing persistance storage for volumes Issue-ID: OOM-2074 Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com> Change-Id: Ia7fd21ab61bfedc39647a30528a122a49a8fd79f (cherry picked from commit b3babc7d1c7c6d2a312df79a79c5a09faf79da26)
2019-11-15Fix helm behaviorPetr Ospalý1-0/+35
When 'helm serve' is not running and helm is not listening on localhost:8879 then helm starts to delete everything...instead of aborting or doing something sensible... This commit fix this misbehavior: we abort Issue-ID: OOM-2074 Change-Id: Icb4d25163012e4aedf5ec1598a4f20c738c04974 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-11-15Improve cleanup (--delete-all) usagePetr Ospalý1-60/+134
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>
2019-11-15Remove deprecated flagPetr Ospalý1-7/+3
This commit fixes this warning: Flag --include-uninitialized has been deprecated, The Initializers feature has been removed. This flag is now a no-op, and will be removed in v1.15 + Fix whitespace in help Issue-ID: OOM-2074 Change-Id: I23b1a5cbe10fc07ec9342119be1753402ef6e041 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-08-16Add helm redeploy toolPetr Ospalý1-0/+537
Simple script to try to redeploy failed charts or explicitly desired chart(s). It supports override files for helm - but please, beware that helm or more specifically the onap helm plugin (deploy.sh) is not capable of handling whitespace in filenames so I don't support that in the script either (I made a version which does but it is no use if helm will break anyway). Change-Id: I69bf0672a64c45e30d4e4239da561647d00637a7 Issue-ID: OOM-1984 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>