15 Commits

Author SHA1 Message Date
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
Sirajudeen
4e25c19021 Fix for minor Go lint issues
Issues addressed:
* package comment should not have leading space
* exported var UiConfig should have comment or be unexported
* if block ends with a return statement, so drop this else and outdent its block
* var UiConfig should be UIConfig

Change-Id: I04b380445d7c97a816f75a9af006d2461b256356
2020-06-17 16:38:52 -05:00
Schiefelbein, Andrew
9effbdce5f Remove company attribution from the license statements
Change-Id: I68a7e1fa335a0bb882d1e83266d63fc49720318b
2020-05-20 11:01:42 -05:00
Schiefelbein, Andrew
37be06e6dc [WIP] transform airship ui into a standalone electron app
Removing octant reference for now, it will need to be
later embedded into the ui

Working on this will require these commands to be run in
the web directory:
npm install
npm install --save-dev electron

behind a proxy npm install may have issues, this might work:
npx cross-env ELECTRON_GET_USE_PROXY=true GLOBAL_AGENT_HTTPS_PROXY=
http://<proxy>:<port> npm install -D electron@latest

Change-Id: I5bd054a767fe8ab7b0461a16eced1921c4de11f6
2020-04-30 08:54:09 -05:00
Schiefelbein, Andrew
55f07e1b25 Align airshipui with airshipctl on the linting setup
Brought over the .golangci.yaml file from airshipctl
Made necessiary corrections based on it

The goimports section in .golangi.yaml will need to be addressed,
not currently working for airshipui

Change-Id: I43973224703408a3320e43a59b4639d6d3edd1ca
2020-03-27 16:05:26 -05:00
Schiefelbein, Andrew
3ed7d1f3f6 Fix for the multiple plugins not starting
Issue caused during refactor of the plugins

Change-Id: I87bc66a4864ae6df22a5b971b26b38da29a08f53
2020-03-27 13:18:43 -05:00
Jordan Jensen
04ad0681d5 Add notes on developing alongside Octant
- Simplified the Getting Started steps and seperated out Prereqs
- Moved Argo UI instructions to its own README and linked to it in
  the developer's guide

Change-Id: Iec3cfbb6a00d7886f5b4e66f8aa8923d15226ae6
2020-03-27 10:37:23 -07:00
Schiefelbein, Andrew
8246e6781d This adds a plugin for OpenStack to the Airship UI
Fixes #24
Fixes #22

It introduces gophercloud for OpenStack components
This also brings the argoui plugin up to the current latest
version of the plugin structure

Change-Id: Ie5e7e2434970f0775701c9b0d851817ef476d7e4
2020-03-26 13:27:52 -05:00
Jordan Jensen
e384d17be6 Use endpoint to show Argo UI
- A proxy or port forward should not be necessary to show the Argo UI
  instead the endpoint should be used to eliminate user steps
- Remove proxy instructions in Developers Guide
- Remove nested pages. Only one page is necessary - the Argo UI
- Update Octant to latest version on master
- Remove TestRouteHandles as a service.Request cannot be created that
  can be used by getArgoUIURL. The functions are not exported

Change-Id: I2a69d3804474f21baafa5e0388eefd569d9ca1a2
2020-01-23 08:04:59 -08:00
Gary Smith
7274339cab Create airshipui executable
Create airshipui executable that derives kube config from the airshipctl
settings and launches octant.  The executable has its own set of
command-line options, which may be expanded in the future to perform
additional setup before launching octant.

Note that octant currently does not support being compiled together and
called as a function from other code, but that support should be coming
in the future.

Remove goimports check from lint suite since it generates undecipherable
(and sometimes unsolvable) false positives and does not substantively
improve on "go fmt".

Change-Id: Iad1530f536fcbae93a92a4e827dbb7aece5231fa
2020-01-08 11:51:30 -08:00
Gary Smith
252c00c780 Integrate golangci-lint linter
Integrate golangci-lint, which is a full-featured linter tool that
includes the checks from 'go vet' and many more.  Borrowed the
install_linter script from airship/airshipctl to install the script
from upstream. Address issues uncovered by the tool.

Change-Id: If30e0819f5d03243e4004bca07951f8aa5218749
2019-12-13 18:57:22 +00:00
jezogwza
b273aab419 Modifies Makefile to support multiple plugins
Introduces new convention for plugins that fixes
multi plugin support

Each plugin name will exist at :
- cmd/<plugin name>/main.go
  Definitions to call plugin registration

- internal/plugin/<plugin name>
  Implementations for Navigation, Tab and Print as appropriate

Change-Id: I6f5e71900eb90b26917216ebd1a2749acc4f5a52
2019-11-25 12:18:33 -05:00
Jordan Jensen
77e9f17d4c Reduce plugin to its minimal state (#4) 2019-09-20 16:51:52 -07:00
Gary Smith
85c3834a9e Inject version number into plugin description (#3) 2019-09-20 14:50:24 -07:00
Gary Smith
708c014058
Initial commit 2019-09-20 09:08:48 -07:00