{"id":22933435,"url":"https://github.com/bluebrown/krm-filter","last_synced_at":"2026-05-09T10:33:47.962Z","repository":{"id":175695615,"uuid":"594717314","full_name":"bluebrown/krm-filter","owner":"bluebrown","description":"collection of kubernetes krm filter","archived":false,"fork":false,"pushed_at":"2023-09-27T07:18:45.000Z","size":141,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-07T11:53:26.647Z","etag":null,"topics":["filter","kpt","krm","kubernetes","kustomize","kustomize-plugin"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bluebrown.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":"2023-01-29T12:35:16.000Z","updated_at":"2023-11-13T13:57:05.000Z","dependencies_parsed_at":"2023-09-27T12:52:46.240Z","dependency_job_id":null,"html_url":"https://github.com/bluebrown/krm-filter","commit_stats":null,"previous_names":["bluebrown/krm-filter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluebrown%2Fkrm-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluebrown%2Fkrm-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluebrown%2Fkrm-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluebrown%2Fkrm-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluebrown","download_url":"https://codeload.github.com/bluebrown/krm-filter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246690276,"owners_count":20818286,"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":["filter","kpt","krm","kubernetes","kustomize","kustomize-plugin"],"created_at":"2024-12-14T11:29:38.571Z","updated_at":"2026-05-09T10:33:47.914Z","avatar_url":"https://github.com/bluebrown.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KRM Filter\n\nThis mono repo contains krm filter (functions) that conform to the [krm\nfunctions\nspec](https://github.com/kubernetes-sigs/kustomize/blob/master/cmd/config/docs/api-conventions/functions-spec.md).\n\nThese filter can be used as standalone or managed by tools that support krm\nfilter. Currently known tools are\n[kustomize](https://kubectl.docs.kubernetes.io/guides/extending_kustomize/containerized_krm_functions/)\nand [kpt](https://kpt.dev/book/04-using-functions/).\n\n## Example\n\n```bash\nkustomize fn run --image bluebrown/kubeaudit-fix dir/\n```\n\n## Standalone\n\nThe filter can be run in standalone mode since they are wrapped as [cobra\ncommands](https://pkg.go.dev/sigs.k8s.io/kustomize/kyaml@v0.13.10/fn/framework/command#Build).\n\nKeep in mind that you MUST provide a config as first positional argument for\neach filter.\n\n```bash\ncat resources.yaml \\\n  | kubeconform schema-conf.yaml - \\\n  | kubeadit-fix audit-conf.yaml - \\\n  | kubeadit audit-conf.yaml - \\\n```\n\n## Resource List\n\nWith the help of some tools, i.e. kpt, which can generate a resource list,\nthe filter can be chained together as well.\n\n```bash\nkpt fn source inputdir \\\n  | kubeconform \\\n  | kubeaudit-fix \\\n  | kubeaudit \\\n  | kpt fn sink outputdir\n```\n\nHowever, this way, there is no way of providing the function config. So it if that is required\nit is better to go all in by using kpt fn eval.\n\n```bash\nkpt fn source inputdir \\\n  | kpt fn eval - -i ko.local/kubeconform --network -- strict=true \\\n  | kpt fn eval - -i ko.local/kubeaudit-fix --fn-config audit.yaml \\\n  | kpt fn eval - -i ko.local/kubeaudit --fn-config audit.yaml \\\n  | kpt fn sink outputdir\n```\n\n## Development\n\n```bash\nbin/init my-new-filter\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluebrown%2Fkrm-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluebrown%2Fkrm-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluebrown%2Fkrm-filter/lists"}