{"id":13514993,"url":"https://github.com/mkokho/kubemrr","last_synced_at":"2026-01-12T09:06:45.009Z","repository":{"id":60821772,"uuid":"65611469","full_name":"mkokho/kubemrr","owner":"mkokho","description":"For blazingly fast kubernets ops ","archived":false,"fork":false,"pushed_at":"2018-07-22T15:10:16.000Z","size":29982,"stargazers_count":143,"open_issues_count":6,"forks_count":6,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-11-01T18:38:10.237Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkokho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-13T10:06:13.000Z","updated_at":"2024-07-18T14:11:18.000Z","dependencies_parsed_at":"2022-10-05T10:01:51.605Z","dependency_job_id":null,"html_url":"https://github.com/mkokho/kubemrr","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkokho%2Fkubemrr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkokho%2Fkubemrr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkokho%2Fkubemrr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkokho%2Fkubemrr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkokho","download_url":"https://codeload.github.com/mkokho/kubemrr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246418658,"owners_count":20773934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T05:01:05.098Z","updated_at":"2026-01-12T09:06:45.003Z","avatar_url":"https://github.com/mkokho.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# kubemrr \n`kubemrr` mirrors description of Kubernetes resources for blazingly fast auto-completion.\n\nFeel free to suggest improvements, I'm here to work on them 👍\n\n[![Build Status](https://travis-ci.org/mkokho/kubemrr.svg?branch=master)](https://travis-ci.org/mkokho/kubemrr)\n\n\n# Details\n\nBash  has the _programmable completion_ feature which permits typing a partial command, \nthen pressing the [TAB] key to auto-complete the command sequence.To use the feature, you need to write a completion script \nand place it in /etc/bash_completion.d folder ([docs](http://www.tldp.org/LDP/abs/html/tabexpansion.html),\n[tutorial](https://debian-administration.org/article/316/An_introduction_to_bash_completion_part_1)). \nFortunately, `kubectl` comes with a command to generate completion script ([kubectl completion](http://kubernetes.io/docs/user-guide/kubectl/kubectl_completion/)). \nThe script works extremely well, but slow, because each time you hit [TAB] it sends a request \nto Kubernetes API Server. If your server is on a different continent you might wait for up to 2 seconds. \nTo reduce the delay, `kubemrr` keeps names of resources locally. See how to make a completion script which talks to `kubemrr` \ninstead of real Kubernetes API server in the example below.\n\n![b](https://cloud.githubusercontent.com/assets/10990119/20454663/0666ec22-aeac-11e6-9d7d-550313fb4b60.gif)\n\n# Example\n\nTo start watching servers, give context names from your kubeconfig file:\n```\nkubemrr watch dev prod\n```\n\nTo make completion script that talks to `kubemrr` shell:\n```\nalias kus='kubectl --context us'\nkubemrr completion bash --kubectl-alias=kus \u003e kus\nsudo cp kus /etc/bash_completion.d\n```\n\nNote that you need to have bash completion installed. It shoud be available on a Linux distribution. On a Mac, \ninstall with `brew install bash-completion`.\n\nReplace `bash` with `zsh` in the above command to generate completion script for `zsh` shell.\n\nTo test it:\n```\nsource kus\nkus get po [TAB][TAB]\nkus get svc [TAB][TAB]\nkus get deployments [TAB][TAB]\nkus get configmaps [TAB][TAB]\nkus get namespaces [TAB][TAB]\nkus get nodes [TAB][TAB]\n```\n\nTo make completion script that talks to `kubemrr` that is running on different host (use IP to save time on name resolution):\n```\nkubemrr completion bash --address=10.5.1.6 --kubectl-alias=kus \u003e kus\n```\n\n# Download\n- OSX: \n```\ncurl -O https://raw.githubusercontent.com/mkokho/kubemrr/v1.3.0/releases/darwin/amd64/kubemrr\n```\n\n- Linux: \n```\ncurl -O https://raw.githubusercontent.com/mkokho/kubemrr/v1.3.0/releases/linux/amd64/kubemrr\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkokho%2Fkubemrr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkokho%2Fkubemrr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkokho%2Fkubemrr/lists"}