-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclean.sh
executable file
·17 lines (16 loc) · 912 Bytes
/
clean.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
oc delete k8srequiredlabels.constraints.gatekeeper.sh/required-label-deployment
oc delete k8smaxrequests.constraints.gatekeeper.sh/pod-max-requests
oc delete k8smaxpods.constraints.gatekeeper.sh/deployment-max-pods
oc delete k8sresourcequota.constraints.gatekeeper.sh/resourcequota
oc delete constraintTemplate k8smaxpods
oc delete constraintTemplate k8smaxrequests
oc delete constraintTemplate k8srequiredlabels
oc delete constraintTemplate k8sresourcequota
oc delete gatekeeper gatekeeper -n gatekeeper-system
oc delete subscription gatekeeper-operator-product -n openshift-operators
oc delete csv gatekeeper-operator-product.v0.2.1 -n openshift-operators
oc delete clusterrole gatekeeper-ops-const-role
oc delete clusterrole gatekeeper-ops-role
oc delete clusterrole gatekeeper-opa-sec-ops
oc delete project gatekeeper-project gatekeeper-project-excluded gatekeeper-system gatekeeper-resourcequota