Skip to content

Commit fca1667

Browse files
authored
fix: test scripts and readme doc about uninstallation (#330)
1 parent a66295f commit fca1667

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

README.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,17 @@ It is easier to use the web console to remove the installed operator.
3636
Instructions below removes all traces of what was setup in the previous step
3737
including removing the catalog.
3838
```
39-
kubectl delete -n operators csv \
39+
oc delete -n operators csv \
4040
-l operators.coreos.com/observability-operator.operators=
4141
42-
kubectl delete -n openshift-operators \
42+
oc delete -n openshift-operators \
4343
installplan,subscriptions \
4444
-l operators.coreos.com/observability-operator.operators=
4545
46-
kubectl delete -f hack/olm
46+
oc delete -f hack/olm
47+
48+
oc delete crds "$(oc api-resources --api-group=monitoring.rhobs -o name)"
49+
4750
```
4851

4952
### Kubernetes
@@ -76,6 +79,9 @@ kubectl delete -n operators \
7679
-l operators.coreos.com/observability-operator.operators=
7780
7881
kubectl delete -f hack/olm/k8s
82+
83+
kubectl delete crds "$(kubectl api-resources --api-group=monitoring.rhobs -o name)"
84+
7985
```
8086
## Development
8187

test/run-e2e-ocp.sh

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ delete_obo() {
6464

6565
oc delete -f hack/olm/subscription.yaml || true
6666
oc delete -f hack/olm/catalog-src.yaml || true
67+
oc delete crds "$(oc api-resources --api-group=monitoring.rhobs -o name)"
6768
ok "uninstalled ObO"
6869
}
6970

0 commit comments

Comments
 (0)