$ yarn install
To get started using the dynamic plugin, you must set up your environment to write a new OpenShift Dedicated dynamic plugin. For an example of how to write a new plugin, see Adding a tab to the pods page.
You can run the plugin using a local development environment. The OpenShift Dedicated web console runs in a container connected to the cluster you have logged into.
You must have cloned the console-plugin-template
repository, which contains a template for creating plugins.
Red Hat does not support custom plugin code. Only Cooperative community support is available for your plugin. |
You must have an OpenShift Dedicated cluster running.
You must have the OpenShift CLI (oc
) installed.
You must have yarn
installed.
You must have Docker v3.2.0 or later or Podman v3.2.0 or later installed and running.
Open two terminal windows.
In one terminal window, run the following command to install the dependencies for your plugin using yarn.
$ yarn install
After installing, run the following command to start yarn.
$ yarn run start
In another terminal window, login to the OpenShift Dedicated through the CLI.
$ oc login
Run the OpenShift Dedicated web console in a container connected to the cluster you have logged into by running the following command:
$ yarn run start-console
The
|
Visit localhost:9000 to view the running plugin. Inspect the value of window.SERVER_FLAGS.consolePlugins
to see the list of plugins which load at runtime.