A Web UI for interacting with Airship-managed clusters
Go to file
Schiefelbein, Andrew a15a4d87e2 Simplify, refactor and rename to bring in line with CTL
This patch does the following:
1.  Simplify the client websocket message transformation
2.  Move the cmd/airshipui to cmd
3.  move internal to pkg
4.  Clean up the copyright checker
5.  clean up the linting in the makefile

Change-Id: I1381d025e8058cbfba44b58ec3c2ec5c2aa36de5
2020-08-04 14:26:51 -05:00
.github Update Airship vulnerability link 2020-05-18 21:22:07 +00:00
certs update makefile to build docker images 2020-07-08 08:45:00 -05:00
client Simplify, refactor and rename to bring in line with CTL 2020-08-04 14:26:51 -05:00
cmd Simplify, refactor and rename to bring in line with CTL 2020-08-04 14:26:51 -05:00
docs Remove electron from the tree 2020-07-29 09:48:49 -05:00
examples Adding Angular to UI 2020-08-04 10:58:46 -05:00
pkg Simplify, refactor and rename to bring in line with CTL 2020-08-04 14:26:51 -05:00
playbooks Added unit-tests in Makefile 2020-07-22 14:06:02 -04:00
roles/docker-install Update zuul gates to use docker-image 2020-07-09 13:12:10 -05:00
tools Simplify, refactor and rename to bring in line with CTL 2020-08-04 14:26:51 -05:00
util Simplify, refactor and rename to bring in line with CTL 2020-08-04 14:26:51 -05:00
.gitignore Adding Angular to UI 2020-08-04 10:58:46 -05:00
.gitreview Add a .gitreview 2019-12-06 16:02:18 -06:00
.golangci.yaml [linters] Aligning linter config with airshipctl 2020-06-19 11:38:46 -05:00
.zuul.yaml Update zuul gates to use docker-image 2020-07-09 13:12:10 -05:00
Dockerfile update makefile to build docker images 2020-07-08 08:45:00 -05:00
go.mod Adding Angular to UI 2020-08-04 10:58:46 -05:00
go.sum Adding Angular to UI 2020-08-04 10:58:46 -05:00
LICENSE Incorporate the whitespace linter from the CTL project 2020-07-22 13:40:32 -05:00
Makefile Simplify, refactor and rename to bring in line with CTL 2020-08-04 14:26:51 -05:00
README.md Remove electron from the tree 2020-07-29 09:48:49 -05:00
tox.ini Publish documentation 2020-05-11 21:21:41 +00:00

Airship UI

Airship UI is a browser based application that is designed to allow you to interact with Airship components, find and connect to the kubernetes cluster and use plugins to tie together a singular dashboard to view addons without the need to go to a separate url or application.

Prerequisites

Getting Started

git clone https://opendev.org/airship/airshipui
cd airshipui
make
make install-npm-modules # Note running behind a proxy can cause issues, notes on solving is in the Appendix of the Developer's Guide

Adding Additional Functionality

Airship UI can be seamlessly integrated with service dashboards and other web-based tools by providing the necessary configuration in $HOME/.airship/airshipui.json.

To add service dashboards, create a section at the top level of airshipui.json as follows:

"dashboards": [
        {
            "name": "ceph",
            "name": "Ceph",
            "baseURL": "https://ceph-dash.example.domain",
            "path": ""
        },
        {
            "name": "Horizon",
            "baseURL": "http://horizon",
            "path": "dashboard/auth/login"
        }
]

For dashboards that are made available through service endpoints in your cluster, the FQDN for the dashboard will be constructed using the format "hostname.namespace.baseFqdn". In the above example, the configuration for Horizon specifies a service dashboard available at "http://horizon.openstack.svc.cluster.local:80/dashboard/auth/login"

Alternatively, you may choose to specify the FQDN directly, as in the above Ceph example. This configuration specifies a Ceph dashboard available at "https://ceph-dash.example.domain:443/"

If both "hostname" and "fqdn" are provided, "fqdn" will take precedence.

The airshipui.json configuration file can also be used to launch external executables that server your dashboards, in the background as Airship UI starts. Any processes launched by Airship UI will be terminated when Airship UI exits, including any child processes started by the plugins. If the plugin launches a web dashboard, it can be also be included in the list of service dashboards within Airship UI. The following example demonstrates how to add configuration to launch and use Octant within Airship UI:

"dashboards": [
        {
            "name": "Octant",
            "baseURL": "http://localhost:7777",
            "path": "",
            "executable": {
                "autoStart": true,
                "filepath": "/usr/local/bin/octant",
                "args": [
                    "--disable-open-browser",
                    "--kubeconfig",
                    "/home/ubuntu/.airship/kubeconfig"
                ]
            }
        }
]

To prevent a dashboard executable from launching but retain its configuration for later use, simply set "autoStart" to false.

Developer's Guide

Instructions on setting up a development environment and more details can be found in the Developer's Guide