Get all the Helm resources that are deployed in the cluster
echo "KIND,NAME,NAMESPACE,HELM_RELEASE" > resources.csv
source main.sh
namespaces=("ccx-prod" "ccx-qa" "ccx-supplementary"); for ns in "${namespaces[@]}";
get_resources "$ns" | awk '{$1=$1; OFS=",";} 1' |
grep -v -E 'Pod|Job|ReplicationController|ReplicaSet' | awk -F, '$1 != "Build"' >> resources.csv
I'm ignoring pods, jobs, builds, replica sets and replication controllers because they are managed by parent resources and contains no helm release in the labels. That would be just noise in the output CSV.