forked from NVIDIA/k8s-nim-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall.yaml
More file actions
18 lines (15 loc) · 774 Bytes
/
uninstall.yaml
File metadata and controls
18 lines (15 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- name: check if Evaluator is installed
shell: helm list -n {{ namespace }} | grep 'evaluator' | awk '{print $1}' | wc -l | tr -d '\n'
register: evaluator_installed
ignore_errors: true
- name: Uninstall Evaluator helm charts
shell: helm list -n {{ namespace }} | awk '{print $1}' | grep -v NAME | egrep 'evaluator|argo|milvus' | xargs helm del -n {{ namespace }}
ignore_errors: true
- name: Delete Evaluator PVCs
shell: kubectl get pvc -n {{ namespace }} | egrep 'evaluator|volcano|milvus' | awk '{print $1}' | xargs kubectl delete pvc -n {{ namespace }}
ignore_errors: true
- name: Delete Argo Kubernetes resources
shell: kubectl get {{ item }} | grep argoproj | awk '{print $1}' | xargs kubectl delete {{ item }}
loop:
- crd
ignore_errors: true