Uninstall the viz and jaeger extensions (#5494)

Use the `uninstall` command for the viz and jaeger extensions to ensure clusters
are cleaned up properly after tests

Signed-off-by: Kevin Leimkuhler <kevin@kleimkuhler.com>
This commit is contained in:
Kevin Leimkuhler 2021-01-08 08:39:25 -05:00 committed by GitHub
parent 828e3e3073
commit 71fd10b887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 4 deletions

View File

@ -79,12 +79,17 @@ if [[ ${namespaces_controlplane[*]} || \
${apiservices:+"${apiservices[@]}"}
fi
echo "cleaning up rolebindings in kube-system namespace in k8s-context [${k8s_context}]"
populate_array rolebindings rolebindings control-plane-ns
echo "cleaning up viz extension resources, if present [${k8s_context}]"
linkerd viz uninstall 2> /dev/null | kubectl --context="$k8s_context" delete -f -
echo "cleaning up multicluster resources, if present [${k8s_context}]"
linkerd mc uninstall 2> /dev/null | kubectl --context="$k8s_context" delete -f -
linkerd mc uninstall 2> /dev/null | kubectl --context="$k8s_context" delete -f -
echo "cleaning up jaeger extension resources, if present [${k8s_context}]"
linkerd jaeger uninstall 2> /dev/null | kubectl --context="$k8s_context" delete -f -
echo "cleaning up rolebindings in kube-system namespace in k8s-context [${k8s_context}]"
populate_array rolebindings rolebindings control-plane-ns
# No action if array is empty
if [[ ${rolebindings[*]} ]]; then