Custom link to Solution Hub
Sometimes it can be very helpful to have a direct link from an OpenShift project to the Solution Hub. How that link can be created is shown below. For both cases you can use the prepared YAML template and adjust it.
Prerequisites
OpenShift version 4.8
Admin access to OpenShift cluster
Example YAML
apiVersion: console.openshift.io/v1
kind: ConsoleLink
metadata:
name: <name of the console link>
spec:
href: '<URL of the solution-hub>'
location: NamespaceDashboard
text: <display name in namespace dashboard in OpenShift>
Create a console link using the oc client
Save the console link into a YAML file (example: console-link.yaml)
oc apply -f console-link.yaml
Create a console link using the OpenShift Admin Console
Log in to the admin console of OpenShift
Navigate to Administration -> Custom Resource Definition -> ConsoleLink
Click on Instances -> Create Console Link
Paste YAML prepared in Create Console Link step then click on Create
Delete a console link using the Open Shift Admin Console
Log into admin console of OpenShift
Navigate to Administration -> Custom Resource Definition -> ConsoleLink
Click on Instances and click on Console Link which needs to be deleted
Navigate to Actions -> Delete Console Link