How do you pin an Application to a specific Git revision or tag?
Short answer
Set targetRevision to a branch, tag, or commit SHA. Using a tag or SHA pins to an immutable revision for reproducible, controlled deployments (common in production), while a branch like main tracks the latest.
Advertisement
AModel answer
Set targetRevision to a branch, tag, or commit SHA. Using a tag or SHA pins to an immutable revision for reproducible, controlled deployments (common in production), while a branch like main tracks the latest. Promotion then means updating targetRevision (often via PR) to the new tag.
source:
targetRevision: v1.4.2 # tag or commit SHA for immutabilityReal-world example
Production pins to tag v1.4.2 so it never changes until a reviewed PR bumps the tag, unlike staging which tracks main.
Likely follow-ups
- Why pin to a tag in production? | How is promotion done with pinned revisions?
Related topics