{"id":13522267,"url":"https://github.com/postfinance/kubectl-ns","last_synced_at":"2025-03-31T22:30:58.211Z","repository":{"id":34686053,"uuid":"151578175","full_name":"postfinance/kubectl-ns","owner":"postfinance","description":"Simple kubectl plugin to display/switch namespaces","archived":true,"fork":false,"pushed_at":"2022-09-08T06:13:33.000Z","size":109,"stargazers_count":21,"open_issues_count":0,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-02T06:31:53.747Z","etag":null,"topics":["golang","kubectl","kubectl-plugins","kubernetes"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/postfinance.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-04T13:43:14.000Z","updated_at":"2024-09-20T06:36:30.000Z","dependencies_parsed_at":"2022-08-28T20:01:55.268Z","dependency_job_id":null,"html_url":"https://github.com/postfinance/kubectl-ns","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postfinance%2Fkubectl-ns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postfinance%2Fkubectl-ns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postfinance%2Fkubectl-ns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postfinance%2Fkubectl-ns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postfinance","download_url":"https://codeload.github.com/postfinance/kubectl-ns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246552235,"owners_count":20795785,"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":["golang","kubectl","kubectl-plugins","kubernetes"],"created_at":"2024-08-01T06:00:44.812Z","updated_at":"2025-03-31T22:30:56.479Z","avatar_url":"https://github.com/postfinance.png","language":"Go","funding_links":[],"categories":["kubectl Plugins"],"sub_categories":["Installing plugins via awesome-kubectl-plugins"],"readme":"[![Build Status](https://img.shields.io/github/workflow/status/postfinance/kubectl-ns/ci?style=for-the-badge)](https://github.com/postfinance/kubectl-ns/actions)\n[![Release](https://img.shields.io/github/release/postfinance/kubectl-ns.svg?style=for-the-badge)](https://github.com/postfinance/kubectl-ns/releases/latest)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=for-the-badge)](/LICENSE.md)\n[![Go Report Card](https://img.shields.io/badge/GOREPORT-A%2B-brightgreen.svg?style=for-the-badge)](https://goreportcard.com/report/github.com/postfinance/kubectl-ns)\n\n# THIS PLUGIN IS ARCHIVED.\n\nPlease use [kubectx](https://github.com/ahmetb/kubectx) instead.\n\n# kubectl ns plugin\n\nSimple Plugin to display/change the current kube namespace with support for substring matching.\n\n# Build/Installation\n\n## Build from source\n\ngo version \u003e= 1.13 with modules support enabled is required to build the plugin from source.\n\n```bash\nexport GO111MODULES=on # optional if checked out outside of $GOPATH\ngo build\n```\n\n## Installation\n\nPre-compiled statically linked binaries are available on the [releases page](https://github.com/postfinance/kubectl-ns/releases).\n\nBinary must be placed anywhere in `$PATH` named `kubectl-ns` with execute permissions.\nFor further information, see the offical documentation on plugins [here](https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/).\n\n# Compatibility\n\nKnown to work on Windows and Linux. Requires kubectl \u003e= 1.12 (tested with versions \u003e1.12).\nSupports the oidc, gcp and azure auth provider for authentication against the k8s api server.\n\n# Examples\n\nFor all the examples, assume your cluster has the following namespaces:\n\n```\ndefault\nkube-system\nkube-public\ningress-nginx\nfoo\nbar\nbaz\n```\n\n## display namespaces\n\nCurrent namespace is displayed in a different color and last.\n\n```bash\n$ kubectl ns\ndefault\nkube-system\nkube-public\ningress-nginx\nfoo\nbar\nbaz\n```\n\nSubstring matching can be used to display namespaces. For example if you are searching for a `kube-` namespace simply type:\n\n```bash\n$ kubectl ns kube-\nkube-system\nkube-public\n```\n\n## change current namespace\n\nYou can switch the namespace by providing an exact name:\n\n```bash\n$ kubectl ns foo\nnamespace set to \"foo\"\n```\n\nBut it's also possible to switch to the `ingress-nginx` namespace by typing a substring (as long as it is a unique name), for example:\n\n```bash\n$ kubectl ns ingress\nnamespace set to \"ingress-nginx\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostfinance%2Fkubectl-ns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostfinance%2Fkubectl-ns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostfinance%2Fkubectl-ns/lists"}