{"id":13522778,"url":"https://github.com/alauda/kubectl-captain","last_synced_at":"2025-12-15T04:23:07.010Z","repository":{"id":40395570,"uuid":"206042665","full_name":"alauda/kubectl-captain","owner":"alauda","description":"kubectl plugin for captain","archived":false,"fork":true,"pushed_at":"2022-05-11T05:24:32.000Z","size":28075,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T12:35:00.689Z","etag":null,"topics":["helm","kubectl","kubectl-plugins"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"fatsheep9146/kubectl-pvc","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alauda.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}},"created_at":"2019-09-03T09:42:59.000Z","updated_at":"2020-08-14T07:51:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/alauda/kubectl-captain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alauda%2Fkubectl-captain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alauda%2Fkubectl-captain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alauda%2Fkubectl-captain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alauda%2Fkubectl-captain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alauda","download_url":"https://codeload.github.com/alauda/kubectl-captain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246558108,"owners_count":20796696,"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":["helm","kubectl","kubectl-plugins"],"created_at":"2024-08-01T06:00:52.219Z","updated_at":"2025-12-15T04:23:06.912Z","avatar_url":"https://github.com/alauda.png","language":"Go","funding_links":[],"categories":["kubectl Plugins"],"sub_categories":["Installing plugins via awesome-kubectl-plugins"],"readme":"# kubectl-captain\n\n![Go](https://github.com/alauda/kubectl-captain/workflows/Go/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/alauda/kubectl-captain)](https://goreportcard.com/report/github.com/alauda/kubectl-captain)\n\nThis is kubectl plugin for [captain](https://github.com/alauda/captain), currently it support the following commands:\n\n* `kubectl captain create`: create a helmrequest\n* `kubectl captain upgrade`: upgrade a helmrequest\n* `kubectl captain trigger-update`: trigger update on a helmrequest\n* `kubectl captain rollback`: rollback a helmrequest\n* `kubectl captain import`: import a helmrelease to captain\n* `kubectl captain create-repo`: create a chartrepo\n* `kubectl captain resync-repo`: resnyc a chartrepo to update charts\n* `kubectl captain get-manifest`: get manifest of a helmrequest\n\n\n## Install\n\nDownload the latest build from the [releases](https://github.com/alauda/kubectl-captain/releases) page, decompress it and run\n\n```bash\nmv kubectl-captain-\u003carch\u003e /usr/local/bin/kubectl-captain\nchmod +x /usr/local/bin/kubectl-captain\n```\n\n## Example\n\n1. kubectl captain upgrade\n\n`kubectl captain upgrade jenkins -n default --set global.images.jenkins.tag=1.6.0 -v 1.6.0`\n\nThis command upgrade a HelmRequest named `jenkins` in `default` namespace, set the chart version to `1.6.0`, and set it's image tag to 1.6.0\n\n2. kubectl captain rollback\n\n`kubectl captain rollback jenkins -n default`\n\nThis command rollback a HelmRequest to it's previous settings.\n\n3. kubectl captain import\n\n`kubectl captain import wordpress -n default --repo=stable --repo-namespace=captain`\n\nThis command import an existing helm v2 release named `wordpress`, who's chart is belongs to a repo named `stable`. this command will try to \ncreate a ChartRepo resource for this repo first in the `captain` namespace if it not exist, afterwards it will create a HelmRequest resource\nnamed `wordpress` in the `default` namespace. Captain will do the sync stuff. \n\n4. kubectl captain create-repo\n\n`kubectl captain create-repo test-repo --url=https://alauda.github.io/captain-test-charts/ -n captain -w --timeout=30`\n\nThis command create a ChartRepo named `test-repo` in the `captain` namespace.\n\n\n5. kubectl captain create\n\n`kubectl captain create test-nginx --chart=stable/nginx-ingress --version=1.26.2 --set=a=b -w --timeout=30`\n\nThis command create a HelmRequest named `test-nginx`, using chart `stable/nginx-ingress`, and version `1.26.2`, and some values.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falauda%2Fkubectl-captain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falauda%2Fkubectl-captain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falauda%2Fkubectl-captain/lists"}