Chapter 8. Uninstalling an Operator installation on OpenShift Container Platform To delete the dynamic plug-ins from your installation, you must edit the ConfigMaps that reference Ansible. The deployment auto reloads when the ConfigMaps are updated. You do not need to reload the deployment manually. 8.1. Removing the Ansible plug-ins from the ConfigMap Procedure Open the custom ConfigMap where you referenced the Ansible plug-ins. For this example, the ConfigMap name is rhaap-dynamic-plugins-config . Locate the dynamic plug-ins in the plugins: block. To disable the plug-ins, update the disabled attribute to true for the three plug-ins. To delete the plug-ins, delete the lines that reference the plug-ins from the plugins: block: kind: ConfigMap apiVersion: v1 metadata: name: rhaap-dynamic-plugins-config data: dynamic-plugins.yaml: | ... plugins: # Remove the Ansible plug-ins entries below the 'plugins' YAML key - disabled: false package: 'http://plugin-registry:8080/ansible-plugin-backstage-rhaap-x.y.z.tgz' integrity: <SHA512 value> ... - disabled: false package: >- http://plugin-registry:8080/ansible-plugin-backstage-rhaap-backend-x.y.z.tgz integrity: <SHA512 value> ... - disabled: false package: >- http://plugin-registry:8080/ansible-plugin-scaffolder-backend-module-backstage-rhaap-x.y.z.tgz integrity: <SHA512 value> ... Click Save . 8.2. Removing Ansible Automation Platform and Dev Spaces from the custom Red Hat Developer Hub ConfigMap Procedure Open the custom Red Hat Developer Hub ConfigMap where you added configuration for the templates and for connecting to Ansible Automation Platform and Dev Spaces. In this example, the Red Hat Developer Hub ConfigMap name is app-config-rhdh . kind: ConfigMap apiVersion: v1 metadata: name: rhdh-app-config data: app-config-custom.yaml: | ... catalog: ... locations: # Remove the YAML entry below the 'locations' YAML key - type: url target: https://github.com/ansible/ansible-rhdh-templates/blob/main/all.yaml rules: - allow: [Template] ... # Remove the entire 'ansible' YAML key and all sub-entries ansible: devSpaces: baseUrl: '<https://YOUR_DEV_SPACES_URL>' creatorService: baseUrl: '127.0.0.1' port: '8000' rhaap: baseUrl: '<https://YOUR_AAP_URL>' token: <REDACTED> checkSSL: false Remove the url in the locations: block to delete the templates from the RHDH instance. Remove the ansible: block to delete the Ansible-specific configuration. Click Save . 8.3. Uninstalling the sidecar container 8.3.1. Removing the Sidecar container from the RHDH Custom Resource ConfigMap If you added extra configuration to the ConfigMap where you added the sidecar container ( rhdh-custom-config in our example), then you cannot remove the reference to the ConfigMap from the RHDH Custom Resource. Instead, you must remove only the YAML code relating to the sidecar from the ConfigMap. Add YAML code 8.3.2. Removing the custom resource ConfigMap from the RHDH Operator Custom Resource If you created a custom resource ConfigMap as described in the Creating a custom Operator ConfigMap and you added only the Ansible development tools sidecar container to it, then you can remove the reference to the ConfigMap from the RHDH Custom Resource. Note Ensure that you do not have any additional need for the custom ConfigMap before you remove it from the Custom Resource. Procedure In the OpenShift console, select the Topology view. Click More actions ... on the RHDH Operator Custom Resource and select Edit backstage to edit the Custom Resource. Remove the ConfigMap reference from the RHDH Operator Custom Resource. For this example, the ConfigMap name is rhdh-custom-config . ... spec: application: ... database: ... rawRuntimeConfig: # Remove the backstageConfig' YAML key below backstageConfig: rhdh-custom-config Click Save .

Commands:
kind: ConfigMap apiVersion: v1 metadata: name: rhaap-dynamic-plugins-config data: dynamic-plugins.yaml: | plugins: # Remove the Ansible plug-ins entries below the 'plugins' YAML key - disabled: false package: 'http://plugin-registry:8080/ansible-plugin-backstage-rhaap-x.y.z.tgz' integrity: <SHA512 value> - disabled: false package: >- http://plugin-registry:8080/ansible-plugin-backstage-rhaap-backend-x.y.z.tgz integrity: <SHA512 value> - disabled: false package: >- http://plugin-registry:8080/ansible-plugin-scaffolder-backend-module-backstage-rhaap-x.y.z.tgz integrity: <SHA512 value>
kind: ConfigMap apiVersion: v1 metadata: name: rhdh-app-config data: app-config-custom.yaml: | catalog: locations: # Remove the YAML entry below the 'locations' YAML key - type: url target: https://github.com/ansible/ansible-rhdh-templates/blob/main/all.yaml rules: - allow: [Template] # Remove the entire 'ansible' YAML key and all sub-entries ansible: devSpaces: baseUrl: '<https://YOUR_DEV_SPACES_URL>' creatorService: baseUrl: '127.0.0.1' port: '8000' rhaap: baseUrl: '<https://YOUR_AAP_URL>' token: <REDACTED> checkSSL: false
Add YAML code
spec: application: database: rawRuntimeConfig: # Remove the backstageConfig' YAML key below backstageConfig: rhdh-custom-config