reginapizza / console-gitops-plugin

Dynamic plugin for console gitops.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenShift Console GitOps Plugin

Based on Openshift Console dynamic plugin, this plugin implement the console elements for GitOps.

Building

Option 1: Without running Console locally

In one terminal window, run:

  1. yarn install
  2. yarn run start

In another terminal window, run:

  1. oc login (requires oc and an OpenShift cluster)
  2. 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/envdynamic to see the running plugin.

Running start-console with Apple silicon and podman

If you are using podman on a Mac with Apple silicon, yarn run start-console might fail since it runs an amd64 image. You can workaround the problem with qemu-user-static by running these commands:

podman machine ssh
sudo -i
rpm-ostree install qemu-user-static
systemctl reboot

Option 2: Have Console running locally

In plugin directory, run

  1. yarn install
  2. yarn run start

In your local console/ directory, run

oc login -u kubeadmin -p $(cat /path/to/install-dir/auth/kubeadmin-password)
source ./contrib/oc-environment.sh
./bin/bridge -plugins gitops-plugin=http://localhost:9001/

About

Dynamic plugin for console gitops.


Languages

Language:TypeScript 89.8%Language:SCSS 6.1%Language:Shell 3.3%Language:Dockerfile 0.6%Language:JavaScript 0.3%