{"id":13451586,"url":"https://github.com/r2d4/kubectl-latest","last_synced_at":"2025-04-10T11:35:27.607Z","repository":{"id":64306932,"uuid":"172411423","full_name":"r2d4/kubectl-latest","owner":"r2d4","description":"Describe, get, and logs output from the last deployed Kubernetes object in one command","archived":false,"fork":false,"pushed_at":"2019-03-04T19:27:26.000Z","size":1027,"stargazers_count":39,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T20:22:01.083Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r2d4.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-02-25T01:10:27.000Z","updated_at":"2024-09-13T18:51:46.000Z","dependencies_parsed_at":"2023-01-15T10:45:38.831Z","dependency_job_id":null,"html_url":"https://github.com/r2d4/kubectl-latest","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r2d4%2Fkubectl-latest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r2d4%2Fkubectl-latest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r2d4%2Fkubectl-latest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r2d4%2Fkubectl-latest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r2d4","download_url":"https://codeload.github.com/r2d4/kubectl-latest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248208688,"owners_count":21065205,"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-07-31T07:00:56.368Z","updated_at":"2025-04-10T11:35:22.557Z","avatar_url":"https://github.com/r2d4.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# kubectl-latest\n\nDescribe, get, and logs output from the last deployed Kubernetes object in one command.\n\n* All resources types are supported (including custom resources)\n* Arbitrary flags can be passed to the underlying commands\n* \"get\", \"describe\", and \"logs\" are the only kubectl output subcommands supported currently\n* Automatically be used as a kubectl subcommand through plugin system (installed manually or with krew)\n\n### Installing\n\nThe only requirement is that `kubectl \u003e= 1.11.x` must be installed on your system.\n\nLinux\n```\ncurl -Lo kubectl-latest https://github.com/r2d4/kubectl-latest/releases/download/v0.0.1/kubectl-latest-linux-amd64 \u0026\u0026 chmod +x kubectl-latest \u0026\u0026 sudo mv kubectl-latest /usr/local/bin\n```\n\nmacOS\n```\ncurl -Lo kubectl-latest https://github.com/r2d4/kubectl-latest/releases/download/v0.0.1/kubectl-latest-darwin-amd64 \u0026\u0026 chmod +x kubectl-latest \u0026\u0026 sudo mv kubectl-latest /usr/local/bin\n```\n\nWindows\n\nhttps://github.com/r2d4/kubectl-latest/releases/download/v0.0.1/kubectl-latest-windows-amd64.exe\n\n\n\n### Examples\n\nYou can invoke the binary directly `kubectl-latest` or, if you are using `kubectl \u003e= 1.12.x`, through kubectl with `kubectl latest`.\n\n```bash\n# Return the \"get\" output of the most recent resource (across all types)\nkubectl latest get \n\n# Return the \"get\" output of the most recent pod, using with the pod short syntax \"po\"\nkubectl latest po\n\n# or equivalently\nkubectl latest get po\n\n# Return the logs of the most recently pod\nkubectl latest logs\n\n# Returns the \"get\" output in yaml format of the most recent deployment. \n# kubectl-latest will pass on arbitrary flags to kubectl\nkubectl latest deployment -o yaml\n\n# Return the \"describe\" output of the most recent service.\nkubectl latest describe svc\n```\n\n### Building from source\n\n`make`\n\n`make install` will install the binary into $GOBIN\n\n`make cross` will build binaries and checksum files for all targets\n\n### Future Work (Currently not supported but contributions welcome!)\n\n* Namespaces other than the default configured one\n* Other subcommands that make sense like label, edit, delete, patch, exec, patch, cp.\n* Following logs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr2d4%2Fkubectl-latest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr2d4%2Fkubectl-latest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr2d4%2Fkubectl-latest/lists"}