{"id":19417817,"url":"https://github.com/gocrane/kubectl-crane","last_synced_at":"2025-07-27T06:39:08.178Z","repository":{"id":37445714,"uuid":"486084259","full_name":"gocrane/kubectl-crane","owner":"gocrane","description":"Kubectl plugin for crane, including recommendation and cost estimate.","archived":false,"fork":false,"pushed_at":"2023-04-24T06:48:58.000Z","size":127,"stargazers_count":14,"open_issues_count":0,"forks_count":6,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-24T13:41:39.030Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/gocrane.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,"publiccode":null,"codemeta":null}},"created_at":"2022-04-27T07:08:05.000Z","updated_at":"2025-01-16T10:30:41.000Z","dependencies_parsed_at":"2024-06-19T03:04:11.936Z","dependency_job_id":"155b8c3b-a87c-4a2e-b8f9-5d41cf41df48","html_url":"https://github.com/gocrane/kubectl-crane","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/gocrane/kubectl-crane","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocrane%2Fkubectl-crane","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocrane%2Fkubectl-crane/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocrane%2Fkubectl-crane/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocrane%2Fkubectl-crane/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gocrane","download_url":"https://codeload.github.com/gocrane/kubectl-crane/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocrane%2Fkubectl-crane/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267318667,"owners_count":24068487,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-10T13:11:30.632Z","updated_at":"2025-07-27T06:39:08.144Z","avatar_url":"https://github.com/gocrane.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubectl-crane\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/gocrane/kubectl-crane)](https://goreportcard.com/report/github.com/gocrane/kubectl-crane)\n\nKubectl plugin for crane, including recommendation and cost estimate.\n\n## Installation\n\nYou can install `kubectl-crane` plugin in any of the following ways:\n\n- One-click installation.\n- Install using Krew.\n- Build from source code.\n\n### One-click installation\n\nDownloaded a tar file from [released packages](https://github.com/gocrane/kubectl-crane/releases) and extract `kubectl-crane` from it, then put the binary under your path.\n\n#### For Linux\n\n```shell\nexport release=v0.2.0\nexport arch=x86_64\ncurl -L -o kubectl-crane.tar.gz https://github.com/gocrane/kubectl-crane/releases/download/${release}/kubectl-crane_${release}_Linux_${arch}.tar.gz\ntar -xvf kubectl-crane.tar.gz \ncp kubectl-crane_${release}_Linux_${arch}/kubectl-crane /usr/local/bin/\n```\n\n#### For Mac\n\n```shell\nexport release=v0.2.0\nexport arch=arm64\ncurl -L -o kubectl-crane.tar.gz https://github.com/gocrane/kubectl-crane/releases/download/${release}/kubectl-crane_${release}_Darwin_${arch}.tar.gz\ntar -xvf kubectl-crane.tar.gz \ncp kubectl-crane_${release}_Darwin_${arch}/kubectl-crane /usr/local/bin/\n```\n\n### Install using Krew\n\n`Krew` is the plugin manager for `kubectl` command-line tool.\n\n[Install and setup](https://krew.sigs.k8s.io/docs/user-guide/setup/install/) Krew on your machine.\n\nThen install `kubectl-crane` plug-in:\n\n```shell\nkubectl krew install crane\n```\n\n### Build from source code\n\n```shell\ngit clone https://github.com/gocrane/kubectl-crane.git\ncd kubectl-crane\nexport CGO_ENABLED=0\ngo mod vendor\ngo build -o kubectl-crane ./cmd/\n```\n\nNext, move the `kubectl-crane` executable file in the project root directory to the `PATH` path.\n\n## Usage\n\n```text\n$ kubectl crane -h\nKubectl plugin for crane, including recommendation and cost estimate.\n\nUsage:\n  kubectl crane [command]\n\nAvailable Commands:\n  completion         Generate the autocompletion script for the specified shell\n  help               Help about any command\n  recommend          view or adopt recommend result\n  recommendationrule manage recommendation rules\n  version            Print kubectl-crane version\n  view-recommend     View a source which recommends related.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocrane%2Fkubectl-crane","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgocrane%2Fkubectl-crane","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocrane%2Fkubectl-crane/lists"}