From dff87f6438ca6b1dd8100685218a142c9268a841 Mon Sep 17 00:00:00 2001 From: Leonardo Fagundes Luz Serrano Date: Tue, 1 Nov 2022 17:59:31 -0300 Subject: [PATCH] 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 Change-Id: I736e3ba3cecfb711e82c879dafcad430a38f5a7f --- tools/collector/debian-scripts/collect_containerization.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/collector/debian-scripts/collect_containerization.sh b/tools/collector/debian-scripts/collect_containerization.sh index 2446c286..d22fe88e 100755 --- a/tools/collector/debian-scripts/collect_containerization.sh +++ b/tools/collector/debian-scripts/collect_containerization.sh @@ -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}