fix: Filter redundant release fields
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
15daa960c2
commit
16f1ff14ff
@ -76,7 +76,7 @@ data:
|
|||||||
echo '['$(date "+%Y-%m-%d %H:%M:%S")']' $(curl -ks https://$URL/components | jq length) 'known releases in database'
|
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
|
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_NAME=$(echo $RELEASE | jq -r '.name')
|
||||||
APP_ID=$(curl -ks https://$URL/components?name=$APP_NAME | jq -r '.[0].id')
|
APP_ID=$(curl -ks https://$URL/components?name=$APP_NAME | jq -r '.[0].id')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user