Documentation
¶
Overview ¶
Command postrender is a deterministic post-renderer for the integration tests.
helmtide's post_renderer is an external command: helm hands it the rendered manifests on stdin and reads the transformed manifests back on stdout. This one stamps every resource it is given with two annotations:
helmtide.io/postrendered: "true" helmtide.io/postrender-batch: "<number of docs in this invocation>"
The batch size is what makes the post_render_strategy observable end to end:
- nohooks: hooks never reach the post-renderer, so a hook resource carries no annotation at all, while the one ordinary manifest is stamped batch=1.
- combined: hooks and manifests arrive together in a single invocation, so both are stamped with the same batch size (2 for the hooked chart).
- separate: the post-renderer is run once per group, so each resource is stamped batch=1 but the hook is still stamped (unlike nohooks).
It intentionally has no third-party dependencies beyond gopkg.in/yaml.v3, which the module already vendors, so the tests can `go build` it anywhere.
Click to show internal directories.
Click to hide internal directories.