/flightctl-ui

Primary LanguageTypeScriptMIT LicenseMIT

Flight Control UI

Monorepo containing UIs for flightctl

Prerequisites:

  • git, nodejs:18, npm:10, rsync

Building

Checkout the repo and from within the repo run:

npm ci
npm run build

Running Standalone UI with backend running in Kind

Choose one of the two options to run the UI application

npm run dev:kind

Running Standalone UI with backend not running in Kind

  • If backend is not running in your Kind cluster, you need to specify the API endpoint
FLIGHTCTL_SERVER=<api_server_url> npm run dev

If the backend, or OIDC provider is running self-signed certs, you will need to disable the verification via env variables:

  • FLIGHTCTL_SERVER_INSECURE_SKIP_VERIFY='true' - to disable verification of backend certs
  • OIDC_INSECURE_SKIP_VERIFY='true' - to disable verification of OIDC certs

or provide the CA certs:

  • copy backend ca.crt to ./certs/ca.crt
  • copy OIDC ca.crt to ./certs/ca_oidc.crt

Running UI as OCP plugin

Login to OCP cluster and run:

npm run dev:ocp