Added more helm information to collect tool

Added outputs of some kubectl status commands to output
of collect tool, at /var/extra/containerization_kube.info

Specifically, information on:
- helm repositories
- helm charts
- helm releases

Test Plan:
PASS Information added

Story: 2010211
Task: 46536

Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: Ife2ff0cd91e1a0579eae94ab9bceb2f01ff3ea59
This commit is contained in:
Leonardo Fagundes Luz Serrano 2022-10-11 11:44:33 -03:00
parent 971f9b6630
commit 016b46e0e1

View File

@ -95,6 +95,9 @@ if [ "$nodetype" = "controller" -a "${ACTIVE}" = true ] ; then
CMDS+=("kubectl get roles.rbac.authorization.k8s.io --all-namespaces")
CMDS+=("kubectl get clusterrolebindings.rbac.authorization.k8s.io")
CMDS+=("kubectl get clusterroles.rbac.authorization.k8s.io")
CMDS+=("kubectl get helmrepositories.source.toolkit.fluxcd.io -A")
CMDS+=("kubectl get helmcharts.source.toolkit.fluxcd.io -A")
CMDS+=("kubectl get helmreleases.helm.toolkit.fluxcd.io -A")
for CMD in "${CMDS[@]}" ; do
delimiter ${LOGFILE_KUBE} "${CMD}"
eval ${CMD} 2>>${COLLECT_ERROR_LOG} >>${LOGFILE_KUBE}