1.0.17 • Published 4 years ago

@kui-shell/plugin-openshift v1.0.17

Weekly downloads
46
License
Apache-2.0
Repository
github
Last release
4 years ago

Kubernetes UI Plugin for Kui

Build Status License

This project offers a kubectl plugin that offers graphical popups in response to normal kubectl commands. To provide a popup-from-terminal experience, this project leverages the Kui project.

For example, kubectl kubeui get pods will pop up a window that displays a table with clickable pod names; the screenshot to the right illustrates one such popup.

Upon clicking a pod name, you will be presented with a multi-tab view of the detail of the resource you selected; the screenshot a bit further down and on the left illustrates such a multi-tab detail view.

Prebuilt Images

You may choose to consume prebuilt images: download and extract into your ~/.krew/bin, make sure that directory is on your PATH, then issue kubectl kubeui get pods.

Latest Release | Mac | Linux

Code and Contribute

git clone https://github.com/kui-shell/plugin-kubeui && cd plugin-kubeui
npm ci
npm start

You should see a window come up. You can now try, for example, kubectl get pods, and expect to see a table, similar to that in the above screenshot. This development client popup has an integrated terminal. You may issue rapid-fire commands within this terminal, so that you can test out a variety of commands in quick succession.

Edit-debug Loop

This project is coded in TypeScript. You may launch a TypeScript watcher via:

npm run watch

The edit-debug loop involves: edit and save a source change; wait for the TypeScript compiler to recompile your source changes; finally, in most cases a simple reload (via Ctrl+R, or Command+R on macOS) of the development client suffices to integrate your changes into an already-open window.

Building a Distribution

To pack up a set of platform clients for subsequent distribution, you may leverage several npm targets expressed in the package.json:

This command will build a macOS tarball, and place it in dist/electron/Kui-darwin-x64.tar.bz2:

npm run build:electron:mac

To enable your already-built bundles as kubectl plugins, this script amends those archives with a simple kubectl-kubeui script front end:

./bin/amend-dist-for-krew.sh

Or, you can build kubectl-enabled archives for all known platforms via:

npm run build:krew

Theming

You have the option to customize the theming in several ways. Here are some of the choices you can influence:

  • client name
  • client icon
  • default theme
  • available themes

These changes are captured in the theme/ subdirectory. More details coming soon. For now, browse the theme.json file.

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

2.1.6

4 years ago

2.1.5

4 years ago

2.1.4

4 years ago

2.1.3

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

0.2.19

4 years ago

0.2.16

4 years ago

0.2.18

4 years ago

0.2.17

4 years ago

0.2.15

4 years ago

0.2.14

4 years ago

0.2.13

4 years ago

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.3

4 years ago

0.2.4

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.2

4 years ago

0.1.9

4 years ago