Chapter 16. Uninstalling Fuse on OpenShift
To uninstall Fuse on OpenShift, remove the imagestreams and templates from registry.redhat.io
, with the oc delete
command.
16.1. Uninstalling Fuse imagestreams and templates on the OpenShift 4.x server Copy linkLink copied to clipboard!
Procedure
+ Find the BASEURL
for your version and define it as a variable for use in commands below.
+
BASEURL=https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.0.fuse-7_13_0-00014-redhat-00001
BASEURL=https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.0.fuse-7_13_0-00014-redhat-00001
Delete the Spring Boot 2 quickstart templates.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Delete Fuse on OpenShift quickstart templates.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Delete the imagestreams.
oc delete -n openshift -f ${BASEURL}/fis-image-streams.json
oc delete -n openshift -f ${BASEURL}/fis-image-streams.json
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Remove items in the Samples Operator.
Edit the configuration of Samples Operator:
oc edit configs.samples.operator.openshift.io -n openshift-cluster-samples-operator
oc edit configs.samples.operator.openshift.io -n openshift-cluster-samples-operator
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Remove the Fuse and Spring Boot 2 templates from the
skippedImagestreams
andskippedTemplates
section.
Some imagestreams and templates are built-in for common use cases. These are managed by the Sample Operator, so you cannot remove them manually. You can ignore them while uninstalling.
Built-in imagestreams are configured with the samples.operator.openshift.io/managed: "true"
label in the manifest, so you can verify if it is managed with the oc get
and grep
commands.
Example
oc get is fuse7-eap-openshift -n openshift -o yaml | grep 'samples.operator.openshift.io/managed'
]$ oc get is fuse7-eap-openshift -n openshift -o yaml | grep 'samples.operator.openshift.io/managed'
samples.operator.openshift.io/managed: "true"
]$