-
Notifications
You must be signed in to change notification settings - Fork 88
/
Tiltfile-delete
46 lines (37 loc) · 1.92 KB
/
Tiltfile-delete
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
include('Tiltfile')
def delete_grafana_operator():
print('Deleting grafana operator')
local('helm uninstall grafana-operator -n grafana-operator')
def delete_external_secrets_operator():
print('Deleting external-secrets operator')
local('helm uninstall external-secrets-operator -n external-secrets-operator')
def delete_openshift_vertical_pod_autoscaler():
print('Uninstalling openshift-vertical-pod-autoscaler')
local('helm uninstall openshift-vertical-pod-autoscaler -n openshift-vertical-pod-autoscaler')
def delete_imc_crds():
print('Deleting imc crds')
local('oc get crds -o name | grep \'endpointmonitor\\.stakater\\.com\' | xargs -r -n 1 oc delete')
def delete_forecastle_crds():
print('Deleting forecastle crds')
local('oc get crds -o name | grep \'forecastle\\.stakater\\.com\' | xargs -r -n 1 oc delete')
def delete_ss_crds():
print('Deleting sealedsecrets crds')
local('oc get crds -o name | grep \'bitnami\\.com\' | xargs -r -n 1 oc delete')
def delete_es_crds():
print('Deleting externalsecrets crds')
local('oc get crds -o name | grep \'external-secrets\\.io\' | xargs -r -n 1 oc delete')
def delete_grafana_crds():
print('Deleting crds')
local('oc get crds -o name | grep \'grafanas\\.integreatly\\.org\' | xargs -r -n 1 oc delete')
local('oc get crds -o name | grep \'grafanadashboards\\.integreatly\\.org\' | xargs -r -n 1 oc delete')
local('oc get crds -o name | grep \'grafanadatasources\\.integreatly\\.org\' | xargs -r -n 1 oc delete')
local('oc get crds -o name | grep \'grafanafolders\\.integreatly\\.org\' | xargs -r -n 1 oc delete')
local('oc get crds -o name | grep \'grafananotificationchannels\\.integreatly\\.org\' | xargs -r -n 1 oc delete')
delete_grafana_operator()
delete_external_secrets_operator()
delete_openshift_vertical_pod_autoscaler()
delete_imc_crds()
delete_forecastle_crds()
delete_ss_crds()
delete_es_crds()
delete_grafana_crds()