Provides a user friendly UI for the form, list and details view of the NodeHealthCheck CRD. The NodeHealthCheck Operator should be installed for the UI to be exposed.
In one terminal window, run:
yarn install
yarn run start
In another terminal window, run:
oc login
(requires oc and an OpenShift cluster)yarn run start-console
(requires Docker or podman 3.2.0+)
This will run the OpenShift console in a container connected to the cluster you've logged into. The plugin HTTP server runs on port 9001 with CORS enabled. Navigate to http://localhost:9000/ and click on Compute -> NodeHealthChecks to see the running plugin.
Before you can deploy your plugin on a cluster, you must build an image and push it to an image registry.
- Build the image:
docker build -t quay.io/my-repositroy/node-remediation-console:latest .
- Run the image:
docker run -it --rm -d -p 9001:80 quay.io/my-repository/node-remediation-console:latest
- Push the image:
docker push quay.io/my-repository/node-remediation-console:latest
NOTE: If you have a Mac with Apple silicon, you will need to add the flag
--platform=linux/amd64
when building the image to target the correct platform
to run in-cluster.
After pushing an image with your changes to a registry, you can deploy the plugin to a cluster by instantiating the provided OpenShift template. It will run a light-weight nginx HTTP server to serve your plugin's assets.
oc process -f template.yaml \
-p PLUGIN_NAME=node-remediation-console-plugin \
-p NAMESPACE=node-remediation-console-plugin \
-p IMAGE=quay.io/my-repository/node-remediation-console-plugin:latest \
| oc create -f -
Currently the tests run on development environment
- Setup Local development
- On a new terminal run
oc login
andyarn test