-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: test scripts and readme doc about uninstallation #330
Conversation
ac4dfef
to
678956d
Compare
README.md
Outdated
for crd in $(oc get crd|grep 'monitoring\.rhobs'|awk '{print $1}'); do \ | ||
oc delete --ignore-not-found customresourcedefinitions $crd; done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(suggestion) a bit shorter
for crd in $(oc get crd|grep 'monitoring\.rhobs'|awk '{print $1}'); do \ | |
oc delete --ignore-not-found customresourcedefinitions $crd; done | |
kubectl delete crds $(kubectl api-resources --api-group=monitoring.rhobs -o name) |
README.md
Outdated
@@ -76,6 +80,9 @@ kubectl delete -n operators \ | |||
-l operators.coreos.com/observability-operator.operators= | |||
|
|||
kubectl delete -f hack/olm/k8s | |||
|
|||
for crd in $(kubectl get crd|grep 'monitoring\.rhobs'|awk '{print $1}'); do \ | |||
kubectl delete --ignore-not-found customresourcedefinitions $crd; done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
@@ -36,14 +36,18 @@ It is easier to use the web console to remove the installed operator. | |||
Instructions below removes all traces of what was setup in the previous step | |||
including removing the catalog. | |||
``` | |||
kubectl delete -n operators csv \ | |||
oc delete -n operators csv \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a follow-up we could replace kubectl
by oc
across the whole OpenShift section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
totally +1, it'll help being specific to openshift, although kubectl
would work as well :D
test/run-e2e-ocp.sh
Outdated
@@ -64,6 +64,8 @@ delete_obo() { | |||
|
|||
oc delete -f hack/olm/subscription.yaml || true | |||
oc delete -f hack/olm/catalog-src.yaml || true | |||
for crd in $(oc get crd|grep 'monitoring\.rhobs'|awk '{print $1}'); do \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too
678956d
to
a536bac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Just one small fix to make the lint check green ;)
|
test/run-e2e-ocp.sh
Outdated
@@ -64,6 +64,7 @@ delete_obo() { | |||
|
|||
oc delete -f hack/olm/subscription.yaml || true | |||
oc delete -f hack/olm/catalog-src.yaml || true | |||
oc delete crds $(oc api-resources --api-group=monitoring.rhobs -o name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As Simon comments, please change this to let the linter go green, thanks!
oc delete crds $(oc api-resources --api-group=monitoring.rhobs -o name) | |
oc delete crds "$(oc api-resources --api-group=monitoring.rhobs -o name)" |
37ee1e7
to
2c04529
Compare
2c04529
to
739bc2d
Compare
@simonpasquier @danielmellado Please help review and approve |
fix #315