Hide editors from the dashboard

Hide selected OpenShift Dev Spaces editors from the Dashboard UI, for example IntelliJ IDEA Ultimate, and have only Visual Studio Code - Open Source visible.

Before you begin

Procedure

  1. Determine the IDs of the available editors. An editor ID has the following format: publisher/name/version.
    oc exec deploy/devspaces-dashboard -n openshift-devspaces  \
        -- curl -s http://localhost:8080/dashboard/api/editors | jq -r '[.[] | "\(.metadata.attributes.publisher)/\(.metadata.name)/\(.metadata.attributes.version)"]'
  2. Edit the CheCluster Custom Resource on the cluster:
    $ oc edit checluster/devspaces -n openshift-devspaces
    spec:
      components:
        dashboard:
          deployment:
            containers:
            - env:
              - name: CHE_HIDE_EDITORS_BY_ID
                value: 'che-incubator/che-webstorm-server/latest, che-incubator/che-webstorm-server/next'

    where:

    value
    A string containing comma-separated IDs of editors to hide.

Results

  • In the OpenShift Dev Spaces Dashboard, go to Create Workspace and verify that the concealed editors are no longer visible.