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
- Host: GitHub
- URL: https://github.com/handofgod94/kubeconf
- Owner: HandOfGod94
- License: mit
- Created: 2024-07-07T17:26:09.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-11T17:46:23.000Z (10 months ago)
- Last Synced: 2024-07-12T18:45:22.549Z (10 months ago)
- Topics: cli, fzf, kubernetes, search
- Language: Python
- Homepage:
- Size: 120 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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

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