Have 'bin/test-cleanup' clean the viz helm release (#5542)

This is needed for the tests in the ARM box to pass.
This commit is contained in:
Alejandro Pedraza 2021-01-14 14:10:37 -05:00 committed by GitHub
parent 536bdf245c
commit 3365e98f13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ kubectl --context="$k8s_context" delete ns -l linkerd.io/is-test-data-plane
# Helm cleanup. Just the entries in `helm ls` as the resources should have already been cleaned up by the code above.
releases=$(helm ls -A -q)
if [[ "${releases[*]}" =~ 'l5d-viz' ]]; then
"$bindir/helm" --kube-context="$k8s_context" delete l5d-viz
fi
if [[ "${releases[*]}" =~ 'helm-test' ]]; then
"$bindir/helm" --kube-context="$k8s_context" delete helm-test
fi