{"id":34193409,"url":"https://github.com/pedrobarco/kubectl-print-env","last_synced_at":"2026-03-11T11:36:04.139Z","repository":{"id":38018867,"uuid":"469218471","full_name":"pedrobarco/kubectl-print-env","owner":"pedrobarco","description":"Build config files from k8s environments","archived":false,"fork":false,"pushed_at":"2025-06-10T22:45:28.000Z","size":72,"stargazers_count":22,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-31T22:49:38.194Z","etag":null,"topics":["golang","kubectl-plugins","kubernetes"],"latest_commit_sha":null,"homepage":"","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/pedrobarco.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":"2022-03-12T22:52:49.000Z","updated_at":"2025-01-01T15:23:56.000Z","dependencies_parsed_at":"2022-09-08T00:02:13.146Z","dependency_job_id":null,"html_url":"https://github.com/pedrobarco/kubectl-print-env","commit_stats":null,"previous_names":["pedrobarco/kubectl-env"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/pedrobarco/kubectl-print-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrobarco%2Fkubectl-print-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrobarco%2Fkubectl-print-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrobarco%2Fkubectl-print-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrobarco%2Fkubectl-print-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedrobarco","download_url":"https://codeload.github.com/pedrobarco/kubectl-print-env/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrobarco%2Fkubectl-print-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30379941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["golang","kubectl-plugins","kubernetes"],"created_at":"2025-12-15T16:37:47.460Z","updated_at":"2026-03-11T11:36:04.133Z","avatar_url":"https://github.com/pedrobarco.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubectl-print-env\n\nA kubectl plugin for building config files from k8s environments\n\nWith `kubectl-print-env`, it is possible to create a config file from kubernetes\nresources. This plugin prints configs by parsing environment information about\nthe specified resources. You can select the output format using the `--output`\nflag.\n\n\n## Installation\n\n`kubectl-print-env` can be installed using [Krew](https://krew.sigs.k8s.io):\n\n```bash\n$ kubectl krew install print-env\n```\n\nor by downloading the binary from the [releases](https://github.com/pedrobarco/kubectl-print-env/releases) page.\n\nAlternatively, `kubectl-print-env` can be installed by running\n\n```bash\n$ go install github.com/pedrobarco/kubectl-print-env/cmd/kubectl-print-env\n```\n\nor by cloning this repository and running:\n\n```bash\n$ make build \u0026\u0026 sudo make install\n```\n\n\n## Usage\n\nWhen used as a kubectl plugin the command is `kubectl print-env`, and when\nused as a standalone executable it's `kubectl-print-env`.\n\n\n```\nkubectl print-env [(-o|--output=)dotenv|json|toml|yaml] (TYPE[.VERSION][.GROUP] [NAME] | TYPE[.VERSION][.GROUP]/NAME) [flags]\n\nExamples:\n  # Build a dotenv config file from a pod\n  kubectl print-env pods my-pod\n\n  # Build a JSON config file from a deployment, in the \"v1\" version of the \"apps\" API group\n  kubectl print-env deployments.v1.apps my-deployment -o json\n\n  # Build a YAML config file from a configmap\n  kubectl print-env cm/my-configmap -o yaml\n\n  # Build a TOML config file from a secret, decoding secret values\n  kubectl print-env secret my-secret -o toml\n```\n\n## Specification\n\nThis plugin supports the following resource types:\n- [x] ConfigMap\n- [x] Secret\n- [x] Pod\n- [ ] Daemonset\n- [ ] Replicaset\n- [ ] Statefulset\n- [x] Deployment\n- [x] Job\n- [ ] CronJob\n- [ ] Service\n- [ ] Ingress\n\n\u003e NOTE: When running `kubectl-print-env`, only resources of this type will be checked\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrobarco%2Fkubectl-print-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedrobarco%2Fkubectl-print-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrobarco%2Fkubectl-print-env/lists"}