{"id":17224848,"url":"https://github.com/pseudomuto/rules_kustomization","last_synced_at":"2025-03-25T16:44:48.322Z","repository":{"id":150795096,"uuid":"413092327","full_name":"pseudomuto/rules_kustomization","owner":"pseudomuto","description":"A bazel macro for generating kustomize bases","archived":false,"fork":false,"pushed_at":"2021-10-04T12:49:29.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T14:52:44.683Z","etag":null,"topics":["bazel","bazel-rules","kustomize"],"latest_commit_sha":null,"homepage":"","language":"Starlark","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/pseudomuto.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}},"created_at":"2021-10-03T13:55:13.000Z","updated_at":"2022-01-08T19:45:45.000Z","dependencies_parsed_at":"2023-05-06T06:43:42.248Z","dependency_job_id":null,"html_url":"https://github.com/pseudomuto/rules_kustomization","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/pseudomuto%2Frules_kustomization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudomuto%2Frules_kustomization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudomuto%2Frules_kustomization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudomuto%2Frules_kustomization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pseudomuto","download_url":"https://codeload.github.com/pseudomuto/rules_kustomization/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245503508,"owners_count":20626179,"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":["bazel","bazel-rules","kustomize"],"created_at":"2024-10-15T04:12:09.699Z","updated_at":"2025-03-25T16:44:48.304Z","avatar_url":"https://github.com/pseudomuto.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rules_kustomization\n\n![Build status](https://github.com/pseudomuto/rules_kustomization/actions/workflows/ci.yaml/badge.svg?branch=main)\n\nA bazel macro for generating kustomize bases. The main motivation for this macro is to make it easy to use kustomize to\nbuild manifests that can be used as k8s_deploy/k8s_object dependencies, etc.\n\nIt has been tested on OSX (amd64 and arm64) and Linux amd64. Other platform _may_ work.\n\n## Setup\n\nIn your WORKSPACE file add the following:\n\n```bzl\nload(\"@bazel_tools//tools/build_defs/repo:http.bzl\", \"http_archive\")\n\nhttp_archive(\n    name = \"com_pseudomuto_rules_kustomization\",\n    sha256 = \"f25fecad8852572028e8f17080267dd915bbc6f258370ed6d4dccf4203159096\",\n    strip_prefix = \"rules_kustomization-0.1.0\",\n    urls = [\"https://github.com/pseudomuto/rules_kustomization/archive/v0.1.0.tar.gz\"],\n)\n\nload(\"@com_pseudomuto_rules_kustomization//:workspace.bzl\", \"download_kustomize\")\ndownload_kustomize()\n```\n\n## Usage\n\nAdd the following to your BUILD file. This build file must be a sibling of kustomization.yaml. See the\n[example](example) for a working demo.\n\n```bzl\nload(\"@com_pseudomuto_rules_kustomization//:defs.bzl\", \"kustomization\")\n\nkustomization(\n    name = \"kustomization\",\n    srcs = glob([\"**/*.yaml\"]),\n)\n```\n\nThis can then be used as input by other rules. For example:\n\n```bzl\n# ...omitted code from above\nload(\"@k8s_deploy//:defaults.bzl\", \"k8s_deploy\")\nk8s_deploy(\n    name = \"crd\",\n    template = \":kustomization\", # the name from above\n    visibility = [\"//visibility:public\"],\n)\n```\n\n### Viewing output\n\nIf you'd like to see what is being generated, you can run the `\u003cname\u003e.manifest` rule. Assuming we have the kustomization\nrule above you'd run `bazel run //\u003ctarget\u003e:kustomization.manifest`. This will dump the result from `kustomize build` to\nstdout.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpseudomuto%2Frules_kustomization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpseudomuto%2Frules_kustomization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpseudomuto%2Frules_kustomization/lists"}