An open API service indexing awesome lists of open source software.

https://github.com/handofgod94/kubeconf

small wrapper around fzf and kubectl to view configmap with preview
https://github.com/handofgod94/kubeconf

cli fzf kubernetes search

Last synced: about 2 months ago
JSON representation

small wrapper around fzf and kubectl to view configmap with preview

Awesome Lists containing this project

README

        

# Kubeconf

Kubeconf is a simple wrapper over fzf and kubectl to view configmaps effectively.

## Table of Contents

* [Installation](#installation)
* [Quickstart](#quickstart)
* [Usage](#usage)
* [Screenshots](#screenshots)
* [Related repo](#related-repo)

## Installation

* On macos
```bash
brew install handofgod94/tap/kubeconf
```

* Verify installation
```bash
kubeconf --version
```

## Quickstart

```bash
kubeconf # to launch the search window with default config
```

```bash
kubeconf -n # to search of configmaps in a specific namespace
```

That's it. It opens up search window with list of configmaps in your current context and current namespace.
You can search and view the configmap in a search window.

## Usage
```
usage: kubeconf [-h] [-n NAMESPACE] [-s SIZE] [-pp {up,down,left,right}]
[-ps PREVIEW_SIZE] [-v]

Interactively lookup in kubernetes configmap

optional arguments:
-h, --help show this help message and exit
-n NAMESPACE, --namespace NAMESPACE
Namespace to search in. Default is current namespace
-s SIZE, --size SIZE Size of the fzf window. Default: 30%
-pp {up,down,left,right}, --preview-position {up,down,left,right}
Preview window position. Default: up
-ps PREVIEW_SIZE, --preview-size PREVIEW_SIZE
Preview window size (in terminal lines). Default: 3
-v, --version show program's version number and exit

```

## Screenshots
![screenshot](./docs/screenshot.png)
![screenshot-2](./docs/screenshot-2.png)

## Related repo
- [kubesecret](https://github.com/HandOfGod94/kubesecret): A similar tool to view secrets in kubernetes cluster