summaryrefslogtreecommitdiffstats
path: root/tools/helm-healer.sh
AgeCommit message (Collapse)AuthorFilesLines
2021-07-01[TOOLS] Add option to turn on Helm verbose outputBartek Grzybowski1-3/+10
Change-Id: I00723c19f1390fb0d701c5ea0705209b054b818f Issue-ID: OOM-2770 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-07-01[TOOLS] Use release's chart manifest to collect kubernetes objectBartek Grzybowski1-34/+5
Since Helm v3 is no longer showing kubernetes objects associated with a release, charts manifest is used to get those. Ref.: https://github.com/helm/helm/issues/5952 Change-Id: Idf16124663186b8d5b8ce2b408bdf7d399b12b48 Issue-ID: OOM-2770 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-07-01[TOOLS] Append namespace argument for helm commandBartek Grzybowski1-4/+4
Change-Id: Icbe1de3b1649b557dbe216d774174121edec8106 Issue-ID: OOM-2770 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-07-01[TOOLS] Drop Helm v2 specific codeBartek Grzybowski1-19/+3
Change-Id: I7ca2889bf3a7296b4c88786cd6f304a86ca007a5 Issue-ID: OOM-2770 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-06-29Merge changes from topic "kube-prometheus-stack"Bartek Grzybowski1-4/+4
* changes: [ANSIBLE] Increase Helm install timeout for kube-prometheus application [ANSIBLE] Create a NodePort type service for Grafana dashboard [DOC] Add documentation for kube-prometheus stack [BUILD] Add Kube Prometheus Stack docker image list to default image list [BUILD] Add 'busybox' image to kube-prometheus data list [ANSIBLE] Update custom Grafana dashboard [ANSIBLE] Configure custom Grafana dashboard [ANSIBLE] Setup persistent volume for Grafana dashboards [TOOLS] Fix helm-healer.sh usage description [ANSIBLE] Add 'nfs' playbook [ANSIBLE] Generate helm values file for kube-prometheus stack [ANSIBLE] Create host paths for PVs and set their permissions [BUILD] Add the 'python2-openshift' package [ANSIBLE] Play the 'k8s-persistent-volume' role in 'kube_prometheus' playbook [ANSIBLE] Add 'k8s-persistent-volume' role [MOLECULE] Add setup for new 'k8s-persistent-volume' role [ANSIBLE] Setup kube-prometheus-stack role [MOLECULE] Setup Molecule for kube-prometheus-stack role [MOLECULE] Add prepare-kube-prometheus-stack role [ANSIBLE] Set default kube-prometheus-stack version [ANSIBLE] Add kube_prometheus playbook [ANSIBLE] Add 'kube-prometheus-stack' role skeleton [BUILD] Symlink kube-prometheus-stack tgz file while creating offline package [BUILD] Add kube-prometheus-stack helm chart package http resource url [BUILD] Add datalist file for kube-prometheus-stack
2021-06-14[TOOLS] Fix helm-healer.sh usage descriptionBartek Grzybowski1-4/+4
"-s" option should be set to Onap's PVs location only. "/dockerdata-nfs" can contain other apps PVs (e.g. kube-prometheus) Change-Id: I868f8feac7f5602e04e7c7b7be3af3257822a264 Issue-ID: INT-1926 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-06-14Fix helm-healer.sh scriptk.kedron1-2/+13
Fix creating namespace during redeployment of helm 3 base ONAP Issue-ID: OOM-2768 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: I7cb2d13bc51fbf8f2e0e90ec10eb347d9ea7e32c
2021-03-08Support Helm v3 in helm-healer scriptBartek Grzybowski1-5/+12
Change-Id: I314b37c587c76038b1694eef7d52078f2af09a1d Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-07-13Refactor 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
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>