Added 'kubectl describe' helm info to collect

Added outputs of 'kubectl describe' applied to api-resources related to helm
to the report produced by the collect tool.
Info is saved at /var/extra/containerization_kube.info

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

Test Plan:
PASS Information added

Story: 2010390
Task: 46704

Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: I736e3ba3cecfb711e82c879dafcad430a38f5a7f
This commit is contained in:
Leonardo Fagundes Luz Serrano 2022-11-01 17:59:31 -03:00
parent ce99797f67
commit dff87f6438

View File

@ -98,6 +98,10 @@ if [ "$nodetype" = "controller" -a "${ACTIVE}" = true ] ; then
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")
CMDS+=("kubectl describe helmrepositories.source.toolkit.fluxcd.io -A")
CMDS+=("kubectl describe helmcharts.source.toolkit.fluxcd.io -A")
CMDS+=("kubectl describe helmreleases.helm.toolkit.fluxcd.io -A")
for CMD in "${CMDS[@]}" ; do
delimiter ${LOGFILE_KUBE} "${CMD}"
eval ${CMD} 2>>${COLLECT_ERROR_LOG} >>${LOGFILE_KUBE}