{"id":13644394,"url":"https://github.com/runoncloud/kubectl-np-viewer","last_synced_at":"2025-04-21T07:31:15.270Z","repository":{"id":41321315,"uuid":"275713825","full_name":"runoncloud/kubectl-np-viewer","owner":"runoncloud","description":"A kubectl plugin to visualize network policies rules.","archived":false,"fork":false,"pushed_at":"2024-02-22T04:18:15.000Z","size":679,"stargazers_count":94,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-09T16:44:23.515Z","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/runoncloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-06-29T02:43:09.000Z","updated_at":"2024-10-03T13:04:16.000Z","dependencies_parsed_at":"2024-01-18T03:05:56.035Z","dependency_job_id":null,"html_url":"https://github.com/runoncloud/kubectl-np-viewer","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":"replicatedhq/krew-plugin-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runoncloud%2Fkubectl-np-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runoncloud%2Fkubectl-np-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runoncloud%2Fkubectl-np-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runoncloud%2Fkubectl-np-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runoncloud","download_url":"https://codeload.github.com/runoncloud/kubectl-np-viewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250014624,"owners_count":21360984,"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-02T01:02:02.790Z","updated_at":"2025-04-21T07:31:10.257Z","avatar_url":"https://github.com/runoncloud.png","language":"Go","readme":"# kubectl np-viewer\n\nA `kubectl` plugin to visualize network policies rules.\n\n## Demo\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"/doc/np-viewer.gif?raw=true\"/\u003e\u003c/p\u003e\n\n## Examples\n\n- Prints all network policies rules for the current namespace\n  ```bash\n  kubectl np-viewer\n  ```\n\n- Prints all network policies rules for a specific namespace\n  ```bash\n  kubectl np-viewer -n default\n  ```\n  \n- Prints all network policies rules for all namespaces\n  ```bash\n  kubectl np-viewer --all-namespaces\n  kubectl np-viewer -A\n  ```\n  \n- Prints network policies rules of type ingress for the current namespace\n  ```bash\n  kubectl np-viewer -i\n  ```\n\n- Prints network policies rules of type egress for the current namespace\n  ```bash\n  kubectl np-viewer -e\n  ```\n  \n- Prints network policies rules affecting a specific pod in the current namespace\n  ```bash\n  kubectl np-viewer -p pod-name\n  ```\n\n## Installation\nThere are several ways to install `np-viewer`. The recommended installation is via the `kubectl` plugin manager \ncalled [`krew`](https://github.com/kubernetes-sigs/krew).\n\n### Via krew\nKrew is a `kubectl` plugin manager. If you have not yet installed `krew`, get it at\n[https://github.com/kubernetes-sigs/krew](https://github.com/kubernetes-sigs/krew).\nThen installation is as simple as\n```bash\nkubectl krew install np-viewer\n```\nThe plugin will be available as `kubectl np-viewer`, see [doc/USAGE](doc/USAGE.md) for further details.\n\n### Binaries\n \n#### OSX\n ```bash\n curl -L -o kubectl-np-viewer.gz https://github.com/runoncloud/kubectl-np-viewer/releases/download/v1.0.6/kubectl-np-viewer_darwin_amd64.tar.gz \u0026\u0026 \\\n   tar zxvf kubectl-np-viewer.gz \u0026\u0026 chmod +x kubectl-np-viewer \u0026\u0026 mv kubectl-np_viewer $GOPATH/bin/\n ```\n \n#### Linux\n ```bash\n curl -L -o kubectl-np-viewer.gz https://github.com/runoncloud/kubectl-np-viewer/releases/download/v1.0.6/kubectl-np-viewer_linux_amd64.tar.gz \u0026\u0026 \\\n   gunzip kubectl-np-viewer.gz \u0026\u0026 chmod +x kubectl-np-viewer \u0026\u0026 mv kubectl-np_viewer $GOPATH/bin/\n ```\n\n#### Windows\n\n ```\n https://github.com/runoncloud/kubectl-np-viewer/releases/download/v1.0.6/kubectl-np-viewer_windows_amd64.zip\n ```\n\nNote that the file name in the GOPATH should be `kubectl-np_viewer` if you want to be able to use it with `kubectl`\n\n### From source\n\nRequirements:\n - go 1.13 or newer\n - GNU make\n - git\n \n ```bash\n make bin           # binaries will be placed in bin/\n ```\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunoncloud%2Fkubectl-np-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunoncloud%2Fkubectl-np-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunoncloud%2Fkubectl-np-viewer/lists"}