Small Menu Bar App to quickly identify the current Kubernetes Context:
Clicking on it we will show the full name of the current context (first line) and the current namespace (second line):
Using the ~/.kube/kct-config configuration file we can choose an icon and some small text to be shown on the tray:
contexts:
- match: preprod.k8s
title: preprod
icon: yellow
- match: devel.k8s
title: dev
icon: green
- match: kind-
title: kind
The current list of available icons is:
Please submit a PR if you want to add more, in the icons folder you can find the icon plus the 2goarray version of it.
It's currently only tested on MacOS.
To build this application you can simply run make
. It will create the binary file under KubeCtxTray.app so you can just drag it into your applications folder.
It's not tested, but it should work file. Please follow getlantern/systray instructions for installing it's dependencies.
Please submit a PR if you get it working on Windows.