[OpenShift] Unable to remove template from service catalog

Solution Verified - Updated -

Issue

  • Removing a template from the openshift namespace doesn't remove the corresponding entry in the service catalog.
 $ oc get template -n openshift|grep frame
frame-application-12.0.0           frame

$ oc get clusterserviceclasses -o=custom-columns=SERVICE\ NAME:.metadata.name,EXTERNAL\ NAME:.spec.externalName|grep frame
d55fc370-5556-11e9-b546-fa163e966ad3   frame-application-12.0.0

 $ oc delete template/frame-application-12.0.0 -n openshift
template "frame-application-12.0.0" deleted

$ oc get template/frame-application-12.0.0 -n openshift|grep frame
Error from server (NotFound): templates.template.openshift.io "frame-application-12.0.0" not found
  • The template continues to be available as a service class and is visible in the service catalog in the web ui.
$ oc get clusterserviceclasses -o=custom-columns=SERVICE\ NAME:.metadata.name,EXTERNAL\ NAME:.spec.externalName|grep frame
d55fc370-5556-11e9-b546-fa163e966ad3   frame-application-12.0.0

Environment

  • Openshift Container Platfrom 3.9
  • Openshift Container Platfrom 3.10
  • Openshift Container Platfrom 3.11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content