{"id":48275235,"url":"https://github.com/sondr3/cuebernetes","last_synced_at":"2026-04-04T22:27:27.538Z","repository":{"id":344257684,"uuid":"1177221868","full_name":"sondr3/cuebernetes","owner":"sondr3","description":"Convert CUE Kubernetes manifests to YAML","archived":false,"fork":false,"pushed_at":"2026-03-13T20:23:30.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-14T08:37:22.600Z","etag":null,"topics":["cue","kubernetes"],"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/sondr3.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-09T20:20:33.000Z","updated_at":"2026-03-13T20:23:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sondr3/cuebernetes","commit_stats":null,"previous_names":["sondr3/cuebernetes"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/sondr3/cuebernetes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sondr3%2Fcuebernetes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sondr3%2Fcuebernetes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sondr3%2Fcuebernetes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sondr3%2Fcuebernetes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sondr3","download_url":"https://codeload.github.com/sondr3/cuebernetes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sondr3%2Fcuebernetes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31416766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"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":["cue","kubernetes"],"created_at":"2026-04-04T22:27:26.922Z","updated_at":"2026-04-04T22:27:27.528Z","avatar_url":"https://github.com/sondr3.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ecuebernetes\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/sondr3/cuebernetes/actions\"\u003e\u003cimg alt=\"GitHub Actions Status\" src=\"https://github.com/sondr3/cuebernetes/workflows/pipeline/badge.svg\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cb\u003eA converter for Kubernetes files in Cue to YAML\u003c/b\u003e\n\u003c/p\u003e\n\n\u003e [!NOTE]\n\u003e This is in many ways a fork, or at the very least based on [cke-cue-kubernetes-resource-exporter](https://github.com/Kystverket/cke-cue-kubernetes-resource-exporter)\n\n# Quickstart\n\n```sh\ngit clone github.com/sondr3/cuebernetes\ncd cuebernetes\ngo install .\n```\n\n## Usage\n\nYou can either render directly to YAML (the default) or write the files back\nout to a output directory (defaults to `_yaml`).\n\n### Example data\n\nYou can either use exported fields or just a naked export. See the following\nexamples. One has exported named fields and one is just a single exported\nnamespace.\n\n```cue\npackage kube\n\nimport (\n\tsource \"cue.dev/x/crd/fluxcd.io/source/v1\"\n\tcore \"cue.dev/x/k8s.io/api/core/v1\"\n)\n\nns: core.#Namespace \u0026 {\n    ...\n}\n\nrepo: source.#HelmRepository \u0026 {\n    ...\n}\n```\n\n```cue\npackage kube\n\nimport (\n\tcore \"cue.dev/x/k8s.io/api/core/v1\"\n)\n\ncore.#Namespace \u0026 {\n    ...\n}\n```\n\n### Straight out\n\nJust point it at a file (or directory), and it'll print all the Cue files that are\nKubernetes manifests to `stdout`.\n\n```shell\n$ cuebernetes testdata/apps/podinfo.cue\n# DO NOT EDIT -- generated from testdata/apps/podinfo.cue\napiVersion: v1\nkind: Namespace\n...\n```\n\n### Written out\n\n\u003e [!TIP]\n\u003e If you do `--output .` it'll write the YAML file alongside the Cue files.\n\nPoint it at a file or directory, and it'll write those Cue manifests to the\noutput directory as a 1-to-1 mapping, essentially just changing the `.cue` to\n`.yaml`.\n\n```shell\n$ cuebernetes -m write testdata/apps/podinfo.cue\nWrote 1 file(s)\n```\n\nIf you want to split the exported fields in the Cue files, you can use `--split`\nto write each file to its own file instead of a multi-document one.\n\n# License\n\nApache.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsondr3%2Fcuebernetes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsondr3%2Fcuebernetes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsondr3%2Fcuebernetes/lists"}