fix: Filter redundant release fields
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2023-07-16 14:49:12 +02:00
parent 15daa960c2
commit 16f1ff14ff
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ data:
echo '['$(date "+%Y-%m-%d %H:%M:%S")']' $(curl -ks https://$URL/components | jq length) 'known releases in database'
for entry in $(helm list --all-namespaces --output json | jq -r '.[] | @base64'); do
RELEASE=$(echo $entry | base64 -d)
RELEASE=$(echo $entry | base64 -d | jq -cS '.type="helm" | del(.namespace, .revision, .status)')
APP_NAME=$(echo $RELEASE | jq -r '.name')
APP_ID=$(curl -ks https://$URL/components?name=$APP_NAME | jq -r '.[0].id')