{"id":28924065,"url":"https://github.com/a1k0u/kustomize-nested-layout","last_synced_at":"2026-05-08T14:47:06.876Z","repository":{"id":300100934,"uuid":"1003582009","full_name":"a1k0u/kustomize-nested-layout","owner":"a1k0u","description":"Tool to support the layout of nested overlays in Kustomize","archived":false,"fork":false,"pushed_at":"2025-06-19T21:11:51.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-19T22:23:36.594Z","etag":null,"topics":["kubernetes","kustomize","yaml"],"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/a1k0u.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}},"created_at":"2025-06-17T11:12:12.000Z","updated_at":"2025-06-19T21:11:54.000Z","dependencies_parsed_at":"2025-06-19T22:34:01.504Z","dependency_job_id":null,"html_url":"https://github.com/a1k0u/kustomize-nested-layout","commit_stats":null,"previous_names":["a1k0u/kustomize-nested-layout"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/a1k0u/kustomize-nested-layout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a1k0u%2Fkustomize-nested-layout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a1k0u%2Fkustomize-nested-layout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a1k0u%2Fkustomize-nested-layout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a1k0u%2Fkustomize-nested-layout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a1k0u","download_url":"https://codeload.github.com/a1k0u/kustomize-nested-layout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a1k0u%2Fkustomize-nested-layout/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32785395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["kubernetes","kustomize","yaml"],"created_at":"2025-06-22T10:03:42.039Z","updated_at":"2026-05-08T14:47:06.863Z","avatar_url":"https://github.com/a1k0u.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kustomize Nested Layout\n\n\u003e Caution. Work in progress. Just proof of concept. Use at your own risk.\n\nKustomize does not support nested overlays out of the box, see [this](https://github.com/kubernetes-sigs/kustomize/issues/851) and [this](https://github.com/kubernetes-sigs/kustomize/issues/596#issuecomment-447167930) issues. \n\nThis tool (script) just convert nested layout to supported layout by Kustomize and run `kustomize build` command.\n\n### Layout\n\nHelp to support layout with nested overlays without extra base directories.\n\n```\nkubernetes\n├── development\n│   ├── betas\n│   │   └── kustomization.yaml\n│   ├── testing\n│   │   ├── deployment.yml\n│   │   └── kustomization.yaml\n│   ├── deployment.yml\n│   ├── hpa_scaled_object.yml\n│   └── kustomization.yaml\n├── production\n│   ├── cron-cluster\n│   │   ├── us-east-2\n│   │   │   ├── deployment.yml\n│   │   │   └── kustomization.yaml\n│   │   ├── deployment.yml\n│   │   └── kustomization.yaml\n│   ├── deployment.yml\n│   ├── hpa_scaled_object.yml\n│   └── kustomization.yaml\n├── deployment.yml\n├── hpa_scaled_object.yml\n├── ingress.yml\n├── service.yml\n└── kustomization.yaml\n```\n\nBuild `kubernetes/development/betas` with kustomize:\n```\nDIR=examples/kubernetes-nested-structure\ngo run main.go --root $DIR --build $DIR/development/betas\n```\n\n### Generation\n\nHelp to generate `resources` and `patches` fields in `kustomization.yaml` files if they are empty, or if no file exists, it will be created.\n\n```\nkubernetes\n├── development\n│   ├── betas\n│   │   └── kustomization.yaml\n│   ├── testing\n│   │   ├── deployment.yml\n│   │   └── kustomization.yaml\n│   ├── deployment.yml\n│   ├── hpa_scaled_object.yml\n│   └── kustomization.yaml\n├── production\n│   ├── cron-cluster\n│   │   ├── us-east-2\n│   │   │   └── deployment.yml\n│   │   └── deployment.yml\n│   ├── deployment.yml\n│   └── hpa_scaled_object.yml\n├── deployment.yml\n├── hpa_scaled_object.yml\n├── ingress.yml\n└── service.yml\n```\n\nIf it is root kustomization, it will generate `resources` field with YAML files from the same directory.\nOtherwise, it will be inherited from nearest parent kustomization.\n\nIf it is not root kustomization, it will generate `patches` field with YAML files from the same directory.\n\n```\nDIR=examples/kubernetes-no-kustomization-files\ngo run main.go --root $DIR \\\n    --build $DIR/production/cluster-name/us-east-2 \\\n    --generate-resources \\\n    --generate-patches\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa1k0u%2Fkustomize-nested-layout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa1k0u%2Fkustomize-nested-layout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa1k0u%2Fkustomize-nested-layout/lists"}