octant-jx

module
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2020 License: Apache-2.0

README

Jenkins X Octant Plugins

This repository contains plugins for Octant for working with Jenkins X

Install

Prerequisites

Octant should first be installed and added to your $PATH, get the latest release here

Install the plugin

Octant checks for extra plugins that live in ~/.config/octant/plugins. You can download the released plugin binary here or build it locally in the next section.

Development of the plugin

To build the plugin use:

make octant

which will build the plugin, install it into ~/.config/octant/plugins and then startup octant against the current k8s cluster.

You can run make tail in another terminal to watch the console log of octant-jx if you are developing a plugin.

Using the Developer + Operator plugins

You should see on the left nav bar the Jenkins X Developer plugin appears near the bottom (2nd to last icons).

Octant should first be installed and added to your $PATH

Then follow the download instructions to get the octant-jx binaries setup so that the octant-* binaries such as octant-jx are in ~/.config/octant/plugins

Now you can run the UI via:

octant --browser-path="/#/jx/pipelines"

You should see on the left nav bar the Jenkins X Developer + Ops plugins appear near the bottom (2nd to last icons).

Running multiple Octants

You may connect to different clusters in different shells and open an octant for each cluster via:

octant --listener-addr=localhost:0

If you want to open a specific view try:

octant --listener-addr=localhost:0  --browser-path="/#/jx/pipelines-recent"

An octant will start along with a new browser window.

Developing octant-jx

octant-jx is 100% go lang and has a pretty simple small code base so we'd love contributions! It should be easy to add or improve the UI to handle most use cases.

Building locally

To build the plugins use:

make octant

which will build the plugins, install then into ~/.config/octant/plugins and then startup octant against the current k8s cluster.

You can run make tail in another terminal to watch the console log of octant-jx if you are developing a plugin.

Adding a new view

Its super easy to add new views of any kubernetes or custom resource you like.

A good example to copy/paste if you want to add a new view is the Repositories view:

Resources for plugin developers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL