{"id":18733917,"url":"https://github.com/mgoltzsche/kustomizr","last_synced_at":"2026-04-29T00:05:06.859Z","repository":{"id":51328731,"uuid":"284532162","full_name":"mgoltzsche/kustomizr","owner":"mgoltzsche","description":"kpt function container image to run kustomize builds","archived":false,"fork":false,"pushed_at":"2021-05-14T23:43:13.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T15:49:39.666Z","etag":null,"topics":["container","container-image","function","gitops","k8s","kpt","kubernetes","kustomize"],"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/mgoltzsche.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":"2020-08-02T20:01:04.000Z","updated_at":"2022-06-27T16:02:56.000Z","dependencies_parsed_at":"2022-09-05T18:13:02.533Z","dependency_job_id":null,"html_url":"https://github.com/mgoltzsche/kustomizr","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgoltzsche%2Fkustomizr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgoltzsche%2Fkustomizr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgoltzsche%2Fkustomizr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgoltzsche%2Fkustomizr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgoltzsche","download_url":"https://codeload.github.com/mgoltzsche/kustomizr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239605079,"owners_count":19667004,"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":["container","container-image","function","gitops","k8s","kpt","kubernetes","kustomize"],"created_at":"2024-11-07T15:11:48.014Z","updated_at":"2025-11-14T17:30:14.769Z","avatar_url":"https://github.com/mgoltzsche.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"kustomizr ![GitHub workflow badge](https://github.com/mgoltzsche/kustomizr/workflows/Semantic%20release/badge.svg)\n=\n\nA [kpt function](https://googlecontainertools.github.io/kpt/guides/producer/functions/#declaring-functions)\ncontainer image to run kustomize builds.\n\nIt supports a declarative, idempotent build and deployment workflow\nwith [kpt](https://github.com/GoogleContainerTools/kpt)\nand [kustomize](https://github.com/kubernetes-sigs/kustomize).\n\n## Usage example\n\nThe `./examples/hello-world` example within this repository specifies a\n[Kustomization](./examples/hello-world/kustomization.yaml) and a\n[function ConfigMap](./examples/hello-world/functions.yaml) using the image `mgoltzsche/kustomizr`.  \n\nRender the kustomization into the output file `./examples/hello-world/deploy/generated.yaml` that the function specifies\n_(could be run each commit)_:\n```\nkpt fn run ./examples/hello-world\n```\n_**Note**: If the kustomization accesses non-yaml files within its repository you may need to `--mount` its directory and specify an absolute path as the function's `path` parameter since non-yaml resources are not provided to the function via stdin._  \n_Also a CI pipeline should ensure that the generate is always consistent with the source._  \n\nIf needed kpt setters can be used to change kustomization values to e.g. deploy to a preview namespace:\n```\nkpt cfg set ./examples/hello-world namespace mypreviewns\nkpt fn run ./examples/hello-world\n```\n\nEnable live deployments for the output directory _(let kpt generate the `inventory-template.yaml` once with component UUID and namespace)_:\n```\nkpt live init ./examples/hello-world/deploy\n```\n\nApply the rendered output that was written to the `deploy` sub directory previously _(could be run in a CD pipeline)_:\n```\nkpt live apply ./examples/hello-world/deploy\n```\n\n## Development\n\nBuild the docker image:\n```\nmake\n```\n\nRun a basic e2e test:\n```\nmake test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgoltzsche%2Fkustomizr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgoltzsche%2Fkustomizr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgoltzsche%2Fkustomizr/lists"}