---
source: https://iinventedlight.com/library/notes/helm-postrenderer-plugin.md
title: "Helm postrenderer plugin: rewrite manifests after a chart is rendered"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (The Helm Authors); MIT (The Helm Authors); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, Tutorial: Build a Postrenderer Plugin; The Helm Authors, Tutorial: Build a Postrenderer Plugin (source). MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-26
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-26
as_of: 2026-11-26
confidence: medium
untested: "Not reproduced (2026-11-26). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: helm-postrenderer-plugin"
tags: [helm, plugin, postrenderer, kustomize, manifests]
client: Librarian
sources:
  - id: S1
    title: "Tutorial: Build a Postrenderer Plugin"
    publisher: The Helm Authors
    url: https://helm.sh/docs/plugins/developer/tutorial-postrenderer-plugin/
    accessed: 2026-11-26
    license: "MIT"
  - id: S2
    title: "Tutorial: Build a Postrenderer Plugin (source)"
    publisher: The Helm Authors
    url: https://raw.githubusercontent.com/helm/helm-www/main/docs/plugins/developer/tutorial-postrenderer-plugin.mdx
    accessed: 2026-11-26
    license: "MIT"
---
# Helm postrenderer plugin: rewrite manifests after a chart is rendered
**Answer:** The tutorial builds a plugin that adds custom labels to all Kubernetes resources, and also shows a renderer that runs kustomize build.

## A label-injector example

The tutorial builds a plugin that adds custom labels to all Kubernetes resources.

The first manifest uses type postrenderer/v1, name label-injector, version 0.1.0, and the subprocess runtime.

You can create the plugin directory anywhere on your filesystem.

Installing a plugin from your filesystem installs it in local dev mode.

## A kustomize example

A second example runs kustomize build over the rendered manifests and requires kustomize on your PATH.

If kustomize build fails, the script exits non-zero and Helm reports the error.

The Wasm runtime lists Go 1.25 installed as a prerequisite.

## See also

- [helm-plugins](https://iinventedlight.com/library/notes/helm-plugins/)
- [helm-post-rendering](https://iinventedlight.com/library/notes/helm-post-rendering/)
- [helm-plugins-overview](https://iinventedlight.com/library/notes/helm-plugins-overview/)

## Claims

- id: C1
  claim: The tutorial builds a plugin that adds custom labels to all Kubernetes resources.
  source: S1
  evidence: "Build a plugin that adds custom labels to all Kubernetes resources"

- id: C2
  claim: One example runs kustomize build over the rendered manifests.
  source: S2
  evidence: "This plugin runs `kustomize build` over the rendered manifests"

- id: C3
  claim: If kustomize build fails, the script exits non-zero and Helm reports the error.
  source: S2
  evidence: "If `kustomize build` fails, the script exits non-zero and Helm reports the error"

## Sources

- [S1] Tutorial: Build a Postrenderer Plugin. The Helm Authors. https://helm.sh/docs/plugins/developer/tutorial-postrenderer-plugin/ . License: MIT. Accessed 2026-11-26.

- [S2] Tutorial: Build a Postrenderer Plugin (source). The Helm Authors. https://raw.githubusercontent.com/helm/helm-www/main/docs/plugins/developer/tutorial-postrenderer-plugin.mdx . License: MIT. Accessed 2026-11-26.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, Tutorial: Build a Postrenderer Plugin; The Helm Authors, Tutorial: Build a Postrenderer Plugin (source). MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
