Repository navigation
docs: add YAML template mode to GeneratingPolicy - #2102
Merged
realshuting merged 3 commits intoJul 23, 2026
Merged
Conversation
Documents the new spec.generate[].template declaration mode shipping in Kyverno 1.19 (kyverno/kyverno#16331): field reference, placeholder interpolation semantics (structural splice vs string interpolation, escaping, mapping-key restriction), multi-document generation, and namespace targeting rules. Signed-off-by: realshuting <shuting@nirmata.com>
1 task done
The lint workflow resolves prettier fresh via yarn (no lockfile for yarn), currently 3.9.6, which formats five pre-existing files differently than the version they were committed with. Reformat them with prettier 3.9.6 so format:check passes. Signed-off-by: realshuting <shuting@nirmata.com>
The lint workflow resolves prettier fresh via yarn (repo has no yarn lockfile), currently 3.9.6, which formats these pre-existing files differently than the version they were committed with. Reformat with prettier 3.9.6 so format:check passes. Signed-off-by: realshuting <shuting@nirmata.com>
realshuting
marked this pull request as ready for review
July 22, 2026 09:23
realshuting
marked this pull request as draft
July 22, 2026 09:23
realshuting
marked this pull request as ready for review
July 22, 2026 09:40
realshuting
enabled auto-merge (squash)
July 22, 2026 09:40
realshuting
marked this pull request as draft
July 22, 2026 09:40
auto-merge was automatically disabled
July 22, 2026 09:40
Pull request was converted to draft
realshuting
marked this pull request as ready for review
July 22, 2026 09:53
realshuting
enabled auto-merge (squash)
July 22, 2026 09:53
JimBugwadia
self-requested a review
July 23, 2026 07:05
JimBugwadia
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issue / PR
Documents the YAML template mode for GeneratingPolicy proposed in kyverno/kyverno#16331 and implemented in kyverno/kyverno#16699 (API: kyverno/api#115), targeting Kyverno 1.19.
Proposed Changes
Adds a new YAML Templates section to the GeneratingPolicy page (between Data Source and Clone Source), marked
beta v1.19:dyn()-heavy CEL object construction; migration path from ClusterPolicy generate rules); per-entry exclusivity ofexpressionvstemplatetemplate.valueandtemplate.interpolate(nonedefault /cel)toPorts); mapping-key restriction with the dynamic-keys workaround;\((escaping;interpolate: nonebehaviormetadata.namespace, NamespacedGeneratingPolicy defaulting and cross-namespace denial, pointer to Looping for fan-out casesDraft until kyverno/kyverno#16699 merges. Prettier-formatted; full
astro buildpasses locally (762 pages).